forked from qt-creator/qt-creator
Fix warning: "Don't call QVector::first() on temporary QList/QVector"
[-Wclazy-detaching-temporary] Change-Id: I23f5cbd80bb92d3f9f1bfb5ae07493818958c5b0 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -2109,7 +2109,7 @@ public:
|
||||
QString description;
|
||||
if (m_change.operationList().size() == 1) {
|
||||
description = QApplication::translate("CppTools::QuickFix",
|
||||
"Reformat to \"%1\"").arg(m_change.operationList().first().text);
|
||||
"Reformat to \"%1\"").arg(m_change.operationList().constFirst().text);
|
||||
} else { // > 1
|
||||
description = QApplication::translate("CppTools::QuickFix",
|
||||
"Reformat Pointers or References");
|
||||
|
||||
Reference in New Issue
Block a user