forked from qt-creator/qt-creator
CppEditor: Fix "! condition" coding style
Change-Id: I216b74933f5e94c49be7f05f0b09ac01b3319d8c Reviewed-by: Aurindam Jana <aurindam.jana@digia.com>
This commit is contained in:
@@ -50,12 +50,12 @@ bool CppAutoCompleter::contextAllowsAutoParentheses(const QTextCursor &cursor,
|
||||
{
|
||||
QChar ch;
|
||||
|
||||
if (! textToInsert.isEmpty())
|
||||
if (!textToInsert.isEmpty())
|
||||
ch = textToInsert.at(0);
|
||||
|
||||
if (! (MatchingText::shouldInsertMatchingText(cursor)
|
||||
|| ch == QLatin1Char('\'')
|
||||
|| ch == QLatin1Char('"')))
|
||||
if (!(MatchingText::shouldInsertMatchingText(cursor)
|
||||
|| ch == QLatin1Char('\'')
|
||||
|| ch == QLatin1Char('"')))
|
||||
return false;
|
||||
else if (isInCommentHelper(cursor))
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user