Shorten the lambda

This commit is contained in:
ζeh Matt committed 2023-06-27 17:55:03 +03:00
1 parent 6807d508d0
commit 905f1ea094
1 file changed
+1 -1
+1 -1
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)