mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-03 18:49:30 +00:00
Fix GCC 15 -Wrange-loop-construct
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user