summaryrefslogtreecommitdiff
path: root/src/scripttools/debugging/qscriptsyntaxhighlighter.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2011-11-09 16:05:58 +0100
committerQt by Nokia <qt-info@nokia.com>2011-11-10 13:32:14 +0100
commit124280b9a691b2118ef38e601fe356c8e21d2ac3 (patch)
treedeed0285cf018df7804d6b6b0e364e9523cd6eb8 /src/scripttools/debugging/qscriptsyntaxhighlighter.cpp
parent385450bf154c33660e4790768feaf648cc929663 (diff)
downloadqtscript-124280b9a691b2118ef38e601fe356c8e21d2ac3.tar.gz
QtScript: Fix warnings about set/unused variables.
Change-Id: Ibee482c27341914fb4ae959e388c3376755b78df Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
Diffstat (limited to 'src/scripttools/debugging/qscriptsyntaxhighlighter.cpp')
-rw-r--r--src/scripttools/debugging/qscriptsyntaxhighlighter.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/scripttools/debugging/qscriptsyntaxhighlighter.cpp b/src/scripttools/debugging/qscriptsyntaxhighlighter.cpp
index bdc8635..8ebadea 100644
--- a/src/scripttools/debugging/qscriptsyntaxhighlighter.cpp
+++ b/src/scripttools/debugging/qscriptsyntaxhighlighter.cpp
@@ -235,7 +235,6 @@ void QScriptSyntaxHighlighter::highlightBlock(const QString &text)
QChar lastChar;
int firstNonSpace = -1;
- int lastNonSpace = -1;
for (;;) {
const QChar c = text.at(i);
@@ -340,8 +339,7 @@ void QScriptSyntaxHighlighter::highlightBlock(const QString &text)
if (input != InputSpace) {
if (firstNonSpace < 0)
firstNonSpace = i;
- lastNonSpace = i;
- }
+ }
lastWasBackSlash = !lastWasBackSlash && c == QLatin1Char('\\');