diff options
| author | aavit <qt-info@nokia.com> | 2011-09-08 19:42:31 (GMT) |
|---|---|---|
| committer | aavit <qt-info@nokia.com> | 2011-09-08 19:42:31 (GMT) |
| commit | a2c2c71ecd84e90f72697dfd57544c8d506c78e2 (patch) | |
| tree | c5e31ff16e2471d33a124a6a37f4e48acdacd235 /src/scripttools/debugging/qscriptcompletiontask.cpp | |
| parent | 6326227674efa85c1a5320141041110d211efc75 (diff) | |
| parent | 260005374b9b930aa583cd117aba96f8f4b34131 (diff) | |
| download | Qt-a2c2c71ecd84e90f72697dfd57544c8d506c78e2.zip Qt-a2c2c71ecd84e90f72697dfd57544c8d506c78e2.tar.gz Qt-a2c2c71ecd84e90f72697dfd57544c8d506c78e2.tar.bz2 | |
Merge remote-tracking branch 'qt-mainline/4.8'
Conflicts:
tools/qvfb/qvfbshmem.cpp
Diffstat (limited to 'src/scripttools/debugging/qscriptcompletiontask.cpp')
| -rw-r--r-- | src/scripttools/debugging/qscriptcompletiontask.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scripttools/debugging/qscriptcompletiontask.cpp b/src/scripttools/debugging/qscriptcompletiontask.cpp index fb250b7..3c94a21 100644 --- a/src/scripttools/debugging/qscriptcompletiontask.cpp +++ b/src/scripttools/debugging/qscriptcompletiontask.cpp @@ -172,7 +172,7 @@ void QScriptCompletionTaskPrivate::completeScriptExpression() while ((pos > 0) && isIdentChar(contents.at(pos-1))) --pos; int pos2 = cursorPosition - 1; - while ((pos2 < contents.size()-1) && isIdentChar(contents.at(pos2+1))) + while ((pos2+1 < contents.size()) && isIdentChar(contents.at(pos2+1))) ++pos2; QString ident = contents.mid(pos, pos2 - pos + 1); position = pos; |
