diff --git a/src/popups/UserMentions.cpp b/src/popups/UserMentions.cpp index b0223f7..2e70dbd 100644 --- a/src/popups/UserMentions.cpp +++ b/src/popups/UserMentions.cpp @@ -74,7 +74,7 @@ UserMentions::initializeMentions(const QMapdebug("Initializing " + std::to_string(notifs.size()) + " notifications."); for (const auto &item : notifs) { - for (const auto notif : item.notifications) { + for (const auto ¬if : item.notifications) { const auto event_id = QString::fromStdString(utils::event_id(notif.event)); try { diff --git a/src/timeline/DelegateChooser.cpp b/src/timeline/DelegateChooser.cpp index 632a2a6..46ab6c0 100644 --- a/src/timeline/DelegateChooser.cpp +++ b/src/timeline/DelegateChooser.cpp @@ -91,7 +91,7 @@ DelegateChooser::clearChoices(QQmlListProperty *p) void DelegateChooser::recalcChild() { - for (const auto choice : choices_) { + for (const auto choice : qAsConst(choices_)) { auto choiceValue = choice->roleValue(); if (!roleValue_.isValid() || !choiceValue.isValid() || choiceValue == roleValue_) { if (child) {