mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Appended references to const auto types in loop to prevent copying.
Suggested by Apple Clang.
This commit is contained in:
@@ -818,7 +818,7 @@ void MainWidget::handleAudioUpdate(const Media::Player::TrackState &state) {
|
||||
if (document) {
|
||||
if (const auto items = InlineBots::Layout::documentItems()) {
|
||||
if (const auto i = items->find(document); i != items->end()) {
|
||||
for (const auto item : i->second) {
|
||||
for (const auto &item : i->second) {
|
||||
item->update();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user