Fix GCC 15 -Wrange-loop-construct

This commit is contained in:
Ilya Fedin
2026-03-03 06:04:04 +00:00
committed by John Preston
parent ca0c9ab659
commit d52d82f7e6
30 changed files with 50 additions and 50 deletions
@@ -62,7 +62,7 @@ void CloseInWindows(not_null<Data::Thread*> thread) {
using WindowPointer = base::weak_ptr<Window::SessionController>;
auto closing = std::vector<WindowPointer>();
auto clearing = std::vector<WindowPointer>();
for (const auto window : thread->session().windows()) {
for (const auto &window : thread->session().windows()) {
if (window->windowId().chat() == thread) {
closing.push_back(base::make_weak(window));
} else if (window->activeChatCurrent().thread() == thread) {