aboutsummaryrefslogtreecommitdiff
path: root/src/emotes.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/emotes.cpp
parented8bc457351005b8590de5a70f8004edcf1635c1 (diff)
parenta9e2ea19508ceb120fbe8a570d35e651c15f819a (diff)
Merge pull request #1067 from AttorneyOnline/cleanup
Very cool and professional cleanup of clazy warnings
Diffstat (limited to 'src/emotes.cpp')
-rw-r--r--src/emotes.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/emotes.cpp b/src/emotes.cpp
index c120d596..9746abce 100644
--- a/src/emotes.cpp
+++ b/src/emotes.cpp
@@ -110,7 +110,7 @@ void Courtroom::set_emote_page()
ui_emote_left->hide();
ui_emote_right->hide();
- for (AOEmoteButton *i_button : qAsConst(ui_emote_list))
+ for (AOEmoteButton *i_button : std::as_const(ui_emote_list))
{
i_button->hide();
}
@@ -265,7 +265,6 @@ void Courtroom::show_emote_menu(const QPoint &pos)
emote_preview->updateViewportGeometry();
update_emote_preview();
}));
- QString prefix;
QString f_pre = ao_app->get_pre_emote(current_char, emote_num);
if (!f_pre.isEmpty() && f_pre != "-")
{