summaryrefslogtreecommitdiff
path: root/src/libs/modelinglib/qstringparser/qstringparser.cpp
diff options
context:
space:
mode:
authorMontel Laurent <laurent.montel@kdab.com>2017-04-14 10:24:28 +0200
committerLaurent Montel <laurent.montel@kdab.com>2017-04-21 12:04:38 +0000
commit158ab3316edcd27bee0a462c1e7eb4b3195af10e (patch)
tree116d17b4363efc0417602c307976928da586d0ba /src/libs/modelinglib/qstringparser/qstringparser.cpp
parent384d141aaceda31e80bab3325285733bce7bd667 (diff)
downloadqt-creator-158ab3316edcd27bee0a462c1e7eb4b3195af10e.tar.gz
Use QString::*Ref method
Change-Id: I63a10f274dd17e08b5b8a2577762cc9f7960b5af Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/libs/modelinglib/qstringparser/qstringparser.cpp')
-rw-r--r--src/libs/modelinglib/qstringparser/qstringparser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/modelinglib/qstringparser/qstringparser.cpp b/src/libs/modelinglib/qstringparser/qstringparser.cpp
index cf40a46e61..bc9348394b 100644
--- a/src/libs/modelinglib/qstringparser/qstringparser.cpp
+++ b/src/libs/modelinglib/qstringparser/qstringparser.cpp
@@ -124,7 +124,7 @@ bool QStringParser::Parser::scan(double *d, int *index)
++(*index);
}
bool ok = false;
- *d = m_source.mid(startIndex, *index - startIndex).toDouble(&ok);
+ *d = m_source.midRef(startIndex, *index - startIndex).toDouble(&ok);
return ok;
}