mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-26 23:42:09 +00:00
Appended references to const auto types in loop to prevent copying.
Suggested by Apple Clang.
This commit is contained in:
@@ -78,7 +78,7 @@ rpl::producer<UpdateType> Changes::Manager<DataType, UpdateType>::flagsValue(
|
||||
|
||||
template <typename DataType, typename UpdateType>
|
||||
void Changes::Manager<DataType, UpdateType>::sendNotifications() {
|
||||
for (const auto [data, flags] : base::take(_updates)) {
|
||||
for (const auto &[data, flags] : base::take(_updates)) {
|
||||
_stream.fire({ data, flags });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user