Skip to content
Snippets Groups Projects
Commit 934e5d03 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Removed obsolete code.

parent fb3ae97d
No related branches found
No related tags found
No related merge requests found
......@@ -648,12 +648,12 @@ bool QScriptIndenter::isUnfinishedLine()
return false;
QChar lastCh = yyLine->at(yyLine->length() - 1);
if (QString::fromLatin1("{};").indexOf(lastCh) == -1 && !yyLine->endsWith("...")) {
if (QString::fromLatin1("{};").indexOf(lastCh) == -1) {
/*
It doesn't end with ';' or similar. If it's neither
"Q_OBJECT" nor "if (x)", it must be an unfinished line.
It doesn't end with ';' or similar. If it's not an "if (x)", it must be an unfinished line.
*/
unf = ! matchBracelessControlStatement();
if (unf && lastCh == QLatin1Char(')'))
unf = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment