diff options
| author | in1tiate <32779090+in1tiate@users.noreply.github.com> | 2025-01-11 01:45:28 -0600 |
|---|---|---|
| committer | in1tiate <32779090+in1tiate@users.noreply.github.com> | 2025-01-11 01:45:28 -0600 |
| commit | 4dae73c848bba1e44abf5a37d41034ded25cf28a (patch) | |
| tree | 886200422f94d81563b3a3359e05858a7d7be078 /src/widgets/playerlistwidget.cpp | |
| parent | 115c1ccd1dc64fceb8a165965ef172dd8812cf85 (diff) | |
use std::as_const instead of qAsConst
Diffstat (limited to 'src/widgets/playerlistwidget.cpp')
| -rw-r--r-- | src/widgets/playerlistwidget.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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) { |
