forked from qt-creator/qt-creator
Prefer append over push_back
This commit is contained in:
@@ -161,7 +161,7 @@ QVector<QTextCharFormat> FontSettings::toTextCharFormats(const QVector<QString>
|
||||
const int size = categories.size();
|
||||
rc.reserve(size);
|
||||
for (int i = 0; i < size; i++)
|
||||
rc.push_back(toTextCharFormat(categories.at(i)));
|
||||
rc.append(toTextCharFormat(categories.at(i)));
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user