forked from qt-creator/qt-creator
Reduce usage of QStringRef::toString() in cppcodeformatter.cpp.
Change-Id: Iff4634c3bd3829d236e3dd38e4d29ced5f118db6 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
@@ -840,7 +840,7 @@ bool CodeFormatter::tryDeclaration()
|
|||||||
return true;
|
return true;
|
||||||
case T_IDENTIFIER:
|
case T_IDENTIFIER:
|
||||||
if (m_tokenIndex == 0) {
|
if (m_tokenIndex == 0) {
|
||||||
QString tokenText = currentTokenText().toString();
|
const QStringRef tokenText = currentTokenText();
|
||||||
if (tokenText.startsWith(QLatin1String("Q_"))
|
if (tokenText.startsWith(QLatin1String("Q_"))
|
||||||
|| tokenText.startsWith(QLatin1String("QT_"))
|
|| tokenText.startsWith(QLatin1String("QT_"))
|
||||||
|| tokenText.startsWith(QLatin1String("QML_"))
|
|| tokenText.startsWith(QLatin1String("QML_"))
|
||||||
|
Reference in New Issue
Block a user