mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-23 15:52:55 +01:00
Shorten the lambda
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user