From 124280b9a691b2118ef38e601fe356c8e21d2ac3 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Wed, 9 Nov 2011 16:05:58 +0100 Subject: QtScript: Fix warnings about set/unused variables. Change-Id: Ibee482c27341914fb4ae959e388c3376755b78df Reviewed-by: Kent Hansen --- src/scripttools/debugging/qscriptsyntaxhighlighter.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/scripttools/debugging/qscriptsyntaxhighlighter.cpp') 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('\\'); -- cgit v1.2.1