diff options
author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2022-10-10 16:04:17 +0200 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2022-10-10 14:14:02 +0000 |
commit | e54fb7ab649521824486e4596e09d2ba164077ba (patch) | |
tree | 9c45696113bda12458c4d1ee42fecfcf82708673 /src/plugins/help/generalsettingspage.cpp | |
parent | 213c879882307e6326a4dc1c718d8c232312a4a0 (diff) | |
download | qt-creator-e54fb7ab649521824486e4596e09d2ba164077ba.tar.gz |
Replace missing qAsConst with std::as_const()
Patch missing leftovers after recent batch patch.
Amends 8eb4d52342fe3a6ede1c1dce3174d95bfa0cea88
Change-Id: I5469b8c10e6844cd1911f719ce3dddbb42697f95
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/help/generalsettingspage.cpp')
-rw-r--r-- | src/plugins/help/generalsettingspage.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/help/generalsettingspage.cpp b/src/plugins/help/generalsettingspage.cpp index 47ba717fd7..459face118 100644 --- a/src/plugins/help/generalsettingspage.cpp +++ b/src/plugins/help/generalsettingspage.cpp @@ -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) |