aboutsummaryrefslogtreecommitdiff
path: root/src/widgets/playerlistwidget.cpp
diff options
context:
space:
mode:
authorin1tiate <32779090+in1tiate@users.noreply.github.com>2025-01-14 02:31:36 -0600
committerGitHub <noreply@github.com>2025-01-14 02:31:36 -0600
commit764b2f8944ef4d40a3829c1e55112b0cb4ff32fe (patch)
tree76db40f16c2e290ca8df7aff27597b6509f28e4f /src/widgets/playerlistwidget.cpp
parented8bc457351005b8590de5a70f8004edcf1635c1 (diff)
parenta9e2ea19508ceb120fbe8a570d35e651c15f819a (diff)
Merge pull request #1067 from AttorneyOnline/cleanup
Very cool and professional cleanup of clazy warnings
Diffstat (limited to 'src/widgets/playerlistwidget.cpp')
-rw-r--r--src/widgets/playerlistwidget.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/widgets/playerlistwidget.cpp b/src/widgets/playerlistwidget.cpp
index b49668ac..c2c65574 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)
{