forked from qt-creator/qt-creator
QmlJs: sync qmljs parser
The last version of the grammar contains some constructs that the code model needs to know. Task-number: QTCREATORBUG-17842 Change-Id: I6250f96431acc05b19f3fd1b6cc268a07485cf0f Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -100,7 +100,7 @@ double integerFromString(const char *buf, int size, int radix)
|
||||
|
||||
double integerFromString(const QString &str, int radix)
|
||||
{
|
||||
QByteArray ba = str.trimmed().toLatin1();
|
||||
QByteArray ba = QStringRef(&str).trimmed().toLatin1();
|
||||
return integerFromString(ba.constData(), ba.size(), radix);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user