forked from qt-creator/qt-creator
Replace missing qAsConst with std::as_const()
Patch missing leftovers after recent batch patch.
Amends 8eb4d52342
Change-Id: I5469b8c10e6844cd1911f719ce3dddbb42697f95
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -250,7 +250,7 @@ void DocSettingsPageWidget::addDocumentation()
|
||||
QSet<QString> values = Utils::toSet(m_filesToUnregister.values(nameSpace));
|
||||
values.remove(filePath);
|
||||
m_filesToUnregister.remove(nameSpace);
|
||||
for (const QString &value : qAsConst(values))
|
||||
for (const QString &value : std::as_const(values))
|
||||
m_filesToUnregister.insert(nameSpace, value);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -425,7 +425,7 @@ void GeneralSettingsPage::updateFontSizeSelector()
|
||||
// try to maintain selection or select closest.
|
||||
if (!pointSizes.empty()) {
|
||||
QString n;
|
||||
for (int pointSize : qAsConst(pointSizes))
|
||||
for (int pointSize : std::as_const(pointSizes))
|
||||
m_widget->sizeComboBox->addItem(n.setNum(pointSize), QVariant(pointSize));
|
||||
const int closestIndex = closestPointSizeIndex(m_font.pointSize());
|
||||
if (closestIndex != -1)
|
||||
|
||||
Reference in New Issue
Block a user