mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Fix GCC 15 -Wrange-loop-construct
This commit is contained in:
@@ -344,7 +344,7 @@ void ConfInviteRow::elementsPaint(
|
||||
}
|
||||
|
||||
void prepare() override {
|
||||
for (const auto user : _users) {
|
||||
for (const auto &user : _users) {
|
||||
delegate()->peerListAppendRow(
|
||||
std::make_unique<ConfInviteRow>(user, _st));
|
||||
}
|
||||
@@ -485,7 +485,7 @@ ConfInviteController::ConfInviteController(
|
||||
, _shareLink(std::move(shareLink)) {
|
||||
if (!_shareLink) {
|
||||
_skip.reserve(_prioritize.size());
|
||||
for (const auto user : _prioritize) {
|
||||
for (const auto &user : _prioritize) {
|
||||
_skip.emplace(user);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user