Prevent copying in a couple places (#4066)

This commit is contained in:
Kasia
2022-10-16 16:25:24 +02:00
committed by GitHub
parent 34b5fa661f
commit b232d16b55
3 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -239,7 +239,7 @@ void ModerationPage::addModerationButtonSettings(
// build one line for each customizable button
auto i = 0;
for (const auto tButton : getSettings()->timeoutButtons.getValue())
for (const auto &tButton : getSettings()->timeoutButtons.getValue())
{
const auto buttonNumber = QString::number(i);
auto timeout = timeoutLayout.emplace<QHBoxLayout>().withoutMargin();