forked from qt-creator/qt-creator
Don't pass QChar as const & since it's just a unsigned short
Reviewed-by: ogoffart
This commit is contained in:
@@ -1547,7 +1547,7 @@ SemanticInfo CPPEditor::semanticInfo() const
|
||||
return m_lastSemanticInfo;
|
||||
}
|
||||
|
||||
bool CPPEditor::isElectricCharacter(const QChar &ch) const
|
||||
bool CPPEditor::isElectricCharacter(QChar ch) const
|
||||
{
|
||||
if (ch == QLatin1Char('{') ||
|
||||
ch == QLatin1Char('}') ||
|
||||
@@ -1559,7 +1559,7 @@ bool CPPEditor::isElectricCharacter(const QChar &ch) const
|
||||
}
|
||||
|
||||
QString CPPEditor::insertMatchingBrace(const QTextCursor &tc, const QString &text,
|
||||
const QChar &la, int *skippedChars) const
|
||||
QChar la, int *skippedChars) const
|
||||
{
|
||||
MatchingText m;
|
||||
return m.insertMatchingBrace(tc, text, la, skippedChars);
|
||||
|
||||
Reference in New Issue
Block a user