diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/script/parser/qscriptlexer.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/script/parser/qscriptlexer.cpp b/src/script/parser/qscriptlexer.cpp index 637b4f4..1f2948d 100644 --- a/src/script/parser/qscriptlexer.cpp +++ b/src/script/parser/qscriptlexer.cpp @@ -31,8 +31,6 @@ QT_BEGIN_NAMESPACE -Q_CORE_EXPORT double qstrtod(const char *s00, char const **se, bool *ok); - #define shiftWindowsLineBreak() \ do { \ if (((current == '\r') && (next1 == '\n')) \ @@ -712,7 +710,7 @@ int QScript::Lexer::lex() double dval = 0; if (state == Number) { - dval = qstrtod(buffer8, 0, 0); + dval = QByteArray::fromRawData(buffer8, pos8).toDouble(); } else if (state == Hex) { // scan hex numbers dval = QScript::integerFromString(buffer8, pos8, 16); state = Number; |