diff options
| author | Casper van Donderen <casper.vandonderen@nokia.com> | 2011-08-31 08:22:19 (GMT) |
|---|---|---|
| committer | Casper van Donderen <casper.vandonderen@nokia.com> | 2011-08-31 08:22:19 (GMT) |
| commit | e8d827da1567aa15a88f0041ca28b126a7ccdf52 (patch) | |
| tree | d52b73e4cde7c9f45f0fb417d97723258ff7da14 /src/scripttools/debugging | |
| parent | 214a26fbde1c5600a10db59217ae9b63a46bce9e (diff) | |
| parent | 1e48d40597bbe12321a5a3e42b3595dc17a7f8e7 (diff) | |
| download | Qt-e8d827da1567aa15a88f0041ca28b126a7ccdf52.zip Qt-e8d827da1567aa15a88f0041ca28b126a7ccdf52.tar.gz Qt-e8d827da1567aa15a88f0041ca28b126a7ccdf52.tar.bz2 | |
Merge remote branch 'mainline/4.8'
Conflicts:
tools/qdoc3/cppcodemarker.cpp
tools/qdoc3/node.cpp
Diffstat (limited to 'src/scripttools/debugging')
| -rw-r--r-- | src/scripttools/debugging/qscriptcompletiontask.cpp | 2 | ||||
| -rw-r--r-- | src/scripttools/debugging/qscriptdebuggercodeview.cpp | 2 |
2 files changed, 2 insertions, 2 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; diff --git a/src/scripttools/debugging/qscriptdebuggercodeview.cpp b/src/scripttools/debugging/qscriptdebuggercodeview.cpp index 7c99723..65fd366 100644 --- a/src/scripttools/debugging/qscriptdebuggercodeview.cpp +++ b/src/scripttools/debugging/qscriptdebuggercodeview.cpp @@ -233,7 +233,7 @@ bool QScriptDebuggerCodeView::event(QEvent *e) return false; } int pos2 = linePosition - 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); |
