diff options
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/io/qtextstream.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/corelib/io/qtextstream.cpp b/src/corelib/io/qtextstream.cpp index eafc561..415ba60 100644 --- a/src/corelib/io/qtextstream.cpp +++ b/src/corelib/io/qtextstream.cpp @@ -755,12 +755,11 @@ bool QTextStreamPrivate::scan(const QChar **ptr, int *length, int maxlen, TokenD delimSize = (lastChar == QLatin1Char('\r')) ? 2 : 1; consumeDelimiter = true; } + lastChar = ch; break; default: break; } - - lastChar = ch; } } while (!foundToken && (!maxlen || totalSize < maxlen) |