diff options
author | Nikolai Kosjar <nikolai.kosjar@digia.com> | 2013-07-24 11:52:01 +0200 |
---|---|---|
committer | Nikolai Kosjar <nikolai.kosjar@digia.com> | 2013-07-25 12:10:30 +0200 |
commit | 6aceadac27eea9678f23dcb6917b96d37fab4e99 (patch) | |
tree | 478eae6eca750f8e7425e42071bba7f06da47688 /src/plugins/cppeditor/cpphighlighter.cpp | |
parent | dbb1cb8484d17790b0f23d8f5c0e1bc2d841f1c6 (diff) |
CppEditor: Fix "! condition" coding style
Change-Id: I216b74933f5e94c49be7f05f0b09ac01b3319d8c
Reviewed-by: Aurindam Jana <aurindam.jana@digia.com>
Diffstat (limited to 'src/plugins/cppeditor/cpphighlighter.cpp')
-rw-r--r-- | src/plugins/cppeditor/cpphighlighter.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/cppeditor/cpphighlighter.cpp b/src/plugins/cppeditor/cpphighlighter.cpp index 762f11ce19..ce1d70845d 100644 --- a/src/plugins/cppeditor/cpphighlighter.cpp +++ b/src/plugins/cppeditor/cpphighlighter.cpp @@ -175,8 +175,8 @@ void CppHighlighter::highlightBlock(const QString &text) // we need to insert a close comment parenthesis, if // - the line starts in a C Comment (initalState != 0) // - the first token of the line is a T_COMMENT (i == 0 && tk.is(T_COMMENT)) - // - is not a continuation line (tokens.size() > 1 || ! state) - if (initialState && i == 0 && (tokens.size() > 1 || ! state)) { + // - is not a continuation line (tokens.size() > 1 || !state) + if (initialState && i == 0 && (tokens.size() > 1 || !state)) { --braceDepth; // unless we are at the end of the block, we reduce the folding indent if (i == tokens.size()-1) @@ -206,7 +206,7 @@ void CppHighlighter::highlightBlock(const QString &text) if (text.length() > lastTokenEnd) highlightLine(text, lastTokenEnd, text.length() - lastTokenEnd, m_formats[CppVisualWhitespace]); - if (! initialState && state && ! tokens.isEmpty()) { + if (!initialState && state && !tokens.isEmpty()) { parentheses.append(Parenthesis(Parenthesis::Opened, QLatin1Char('+'), tokens.last().begin())); ++braceDepth; @@ -356,7 +356,7 @@ void CppHighlighter::highlightWord(QStringRef word, int position, int length) || (word.at(1) == QLatin1Char('T') && word.at(2) == QLatin1Char('_'))) { // QT_ for (int i = 1; i < word.length(); ++i) { const QChar &ch = word.at(i); - if (! (ch.isUpper() || ch == QLatin1Char('_'))) + if (!(ch.isUpper() || ch == QLatin1Char('_'))) return; } @@ -375,7 +375,7 @@ void CppHighlighter::highlightDoxygenComment(const QString &text, int position, const QTextCharFormat &format = m_formats[CppDoxygenCommentFormat]; const QTextCharFormat &kwFormat = m_formats[CppDoxygenTagFormat]; - while (! it->isNull()) { + while (!it->isNull()) { if (it->unicode() == QLatin1Char('\\') || it->unicode() == QLatin1Char('@')) { ++it; |