forked from qt-creator/qt-creator
Use qAsConst with non-const Qt containers in range-loops
... in various places Change-Id: Ic6c0c1b9437a1ed402105c7a14a1f5f9454a68d4 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -1199,7 +1199,7 @@ HeobDialog::HeobDialog(QWidget *parent) :
|
||||
|
||||
auto profilesLayout = new QHBoxLayout;
|
||||
m_profilesCombo = new QComboBox;
|
||||
for (const auto &profile : m_profiles)
|
||||
for (const auto &profile : qAsConst(m_profiles))
|
||||
m_profilesCombo->addItem(settings->value(profile + "/" + heobProfileNameC).toString());
|
||||
if (hasSelProfile) {
|
||||
int selIdx = m_profiles.indexOf(selProfile);
|
||||
|
||||
Reference in New Issue
Block a user