Shorten the lambda

This commit is contained in:
ζeh Matt 2023-06-27 17:55:03 +03:00
parent 6807d508d0
commit 905f1ea094
No known key found for this signature in database
GPG Key ID: 18CE582C71A225B0
1 changed files with 1 additions and 1 deletions

View File

@ -224,7 +224,7 @@ void WindowClose(WindowBase& w)
void WindowFlushDead()
{
// Remove all windows in g_window_list that have the WF_DEAD flag
g_window_list.remove_if([](const std::shared_ptr<WindowBase>& w) -> bool { return w->flags & WF_DEAD; });
g_window_list.remove_if([](auto&& w) -> bool { return w->flags & WF_DEAD; });
}
template<typename TPred> static void WindowCloseByCondition(TPred pred, uint32_t flags = WindowCloseFlags::None)