forked from qt-creator/qt-creator
TextEditor: Compile with QT_NO_CAST_FROM_ASCII.
Change-Id: I8fa683c4f68d6e3d3a3eb95acf2f54f8c56b87b7 Reviewed-by: Leandro Melo <leandro.melo@nokia.com>
This commit is contained in:
@@ -190,10 +190,10 @@ TextBlockUserData::MatchType TextBlockUserData::checkClosedParenthesis(QTextCurs
|
||||
cursor->clearSelection();
|
||||
cursor->setPosition(openParenParag.position() + openParen.pos, QTextCursor::KeepAnchor);
|
||||
|
||||
if ((c == '}' && openParen.chr != '{') ||
|
||||
(c == ')' && openParen.chr != '(') ||
|
||||
(c == ']' && openParen.chr != '[') ||
|
||||
(c == '-' && openParen.chr != '+'))
|
||||
if ((c == QLatin1Char('}') && openParen.chr != QLatin1Char('{')) ||
|
||||
(c == QLatin1Char(')') && openParen.chr != QLatin1Char('(')) ||
|
||||
(c == QLatin1Char(']') && openParen.chr != QLatin1Char('[')) ||
|
||||
(c == QLatin1Char('-') && openParen.chr != QLatin1Char('+')))
|
||||
return Mismatch;
|
||||
|
||||
return Match;
|
||||
|
||||
Reference in New Issue
Block a user