2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Fix -Wrange-loop-analysis

This commit is contained in:
Ilya Fedin
2021-12-10 16:36:06 +04:00
parent 1ac0c7228c
commit c11760d140

View File

@@ -218,20 +218,20 @@ LocalFolder ChatFilter::toLocal(int cloudOrder, FilterId replaceId) const {
auto always = _always;
auto pinned = std::vector<uint64>();
pinned.reserve(_pinned.size());
for (const auto history : _pinned) {
for (const auto &history : _pinned) {
const auto &peer = history->peer;
pinned.push_back(peer->id.value);
always.remove(history);
}
auto include = std::vector<uint64>();
include.reserve(always.size());
for (const auto history : always) {
for (const auto &history : always) {
const auto &peer = history->peer;
include.push_back(peer->id.value);
}
auto never = std::vector<uint64>();
never.reserve(_never.size());
for (const auto history : _never) {
for (const auto &history : _never) {
const auto &peer = history->peer;
never.push_back(peer->id.value);
}