diff options
Diffstat (limited to 'src/widgets')
| -rw-r--r-- | src/widgets/aooptionsdialog.cpp | 10 | ||||
| -rw-r--r-- | src/widgets/playerlistwidget.cpp | 6 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/widgets/aooptionsdialog.cpp b/src/widgets/aooptionsdialog.cpp index 4ff9dc18..57ea7d5b 100644 --- a/src/widgets/aooptionsdialog.cpp +++ b/src/widgets/aooptionsdialog.cpp @@ -194,7 +194,7 @@ void AOOptionsDialog::updateValues() l_sorting.setNumericMode(true); std::sort(l_themes.begin(), l_themes.end(), l_sorting); - for (const QString &l_theme : qAsConst(l_themes)) + for (const QString &l_theme : std::as_const(l_themes)) { if (!themes.contains(l_theme)) { @@ -205,7 +205,7 @@ void AOOptionsDialog::updateValues() } QStringList l_subthemes = QDir(ao_app->get_real_path(ao_app->get_theme_path(""))).entryList(QDir::Dirs | QDir::NoDotAndDotDot); - for (const QString &l_subtheme : qAsConst(l_subthemes)) + for (const QString &l_subtheme : std::as_const(l_subthemes)) { if (l_subtheme.toLower() != "server" && l_subtheme.toLower() != "default" && l_subtheme.toLower() != "effects" && l_subtheme.toLower() != "misc") { @@ -221,7 +221,7 @@ void AOOptionsDialog::updateValues() ui_privacy_policy->setHtml(document); }); - for (const OptionEntry &entry : qAsConst(optionEntries)) + for (const OptionEntry &entry : std::as_const(optionEntries)) { entry.load(); } @@ -230,7 +230,7 @@ void AOOptionsDialog::updateValues() void AOOptionsDialog::savePressed() { bool l_reload_theme_required = (ui_theme_combobox->currentText() != Options::getInstance().theme()) || (ui_theme_scaling_factor_sb->value() != Options::getInstance().themeScalingFactor()); - for (const OptionEntry &entry : qAsConst(optionEntries)) + for (const OptionEntry &entry : std::as_const(optionEntries)) { entry.save(); } @@ -281,7 +281,7 @@ void AOOptionsDialog::themeChanged(int i) QStringList l_subthemes = QDir(ao_app->get_real_path(ao_app->get_theme_path("", ui_theme_combobox->itemText(i)))).entryList(QDir::Dirs | QDir::NoDotAndDotDot); - for (const QString &l_subthemes : qAsConst(l_subthemes)) + for (const QString &l_subthemes : std::as_const(l_subthemes)) { if (l_subthemes.toLower() != "server" && l_subthemes.toLower() != "default" && l_subthemes.toLower() != "effects" && l_subthemes.toLower() != "misc") { diff --git a/src/widgets/playerlistwidget.cpp b/src/widgets/playerlistwidget.cpp index 76913781..7c7fa6f6 100644 --- a/src/widgets/playerlistwidget.cpp +++ b/src/widgets/playerlistwidget.cpp @@ -72,7 +72,7 @@ void PlayerListWidget::updatePlayer(const PlayerUpdate &update) void PlayerListWidget::reloadPlayers() { - for (const PlayerData &player : qAsConst(m_player_map)) + for (const PlayerData &player : std::as_const(m_player_map)) { updatePlayer(player.id, false); } @@ -81,7 +81,7 @@ void PlayerListWidget::reloadPlayers() void PlayerListWidget::setAuthenticated(bool f_state) { m_is_authenticated = f_state; - for (const PlayerData &data : qAsConst(m_player_map)) + for (const PlayerData &data : std::as_const(m_player_map)) { updatePlayer(data.id, false); filterPlayerList(); @@ -150,7 +150,7 @@ void PlayerListWidget::removePlayer(int playerId) void PlayerListWidget::filterPlayerList() { int area_id = m_player_map.value(ao_app->client_id).area_id; - for (QListWidgetItem *item : qAsConst(m_item_map)) + for (QListWidgetItem *item : std::as_const(m_item_map)) { if (!item) { |
