summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2015-09-27 14:53:36 +0300
committerOrgad Shaneh <orgads@gmail.com>2015-09-29 10:33:47 +0000
commitc3772f478cf9c24174b8453c518424425c07a38e (patch)
treee3076c9fa3e4c61e35ad5501108badc64964239f
parente054c7d7db0e6784e46f60d252a6143a62354ea0 (diff)
downloadqt-creator-c3772f478cf9c24174b8453c518424425c07a38e.tar.gz
Cmake: Fix MSVC warning
cmakeautocompleter.cpp:113: warning: C4129: '(' : unrecognized character escape sequence Change-Id: I4dccf3a0690a9c755c1e4672bfa669deaf893be2 Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
-rw-r--r--src/plugins/cmakeprojectmanager/cmakeautocompleter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cmakeprojectmanager/cmakeautocompleter.cpp b/src/plugins/cmakeprojectmanager/cmakeautocompleter.cpp
index c74befd95b..4cd5eb952c 100644
--- a/src/plugins/cmakeprojectmanager/cmakeautocompleter.cpp
+++ b/src/plugins/cmakeprojectmanager/cmakeautocompleter.cpp
@@ -110,7 +110,7 @@ QString CMakeAutoCompleter::insertMatchingBrace(const QTextCursor &cursor, const
int CMakeAutoCompleter::paragraphSeparatorAboutToBeInserted(QTextCursor &cursor, const TextEditor::TabSettings &tabSettings)
{
const QString line = cursor.block().text().trimmed();
- if (line.contains(QRegExp(QStringLiteral("^(endfunction|endmacro|endif|endforeach|endwhile)\\w*\("))))
+ if (line.contains(QRegExp(QStringLiteral("^(endfunction|endmacro|endif|endforeach|endwhile)\\w*\\("))))
tabSettings.indentLine(cursor.block(), tabSettings.indentationColumn(cursor.block().text()));
return 0;
}