mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-22 15:23:01 +01:00
Add line breaks after template declarations (#23086)
* Add line breaks after template declarations * Additional clang-format patches
This commit is contained in:
@@ -244,7 +244,8 @@ void WindowFlushDead()
|
||||
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)
|
||||
template<typename TPred>
|
||||
static void WindowCloseByCondition(TPred pred, uint32_t flags = WindowCloseFlags::None)
|
||||
{
|
||||
for (auto it = g_window_list.rbegin(); it != g_window_list.rend(); ++it)
|
||||
{
|
||||
@@ -476,7 +477,8 @@ WidgetIndex WindowFindWidgetFromPoint(WindowBase& w, const ScreenCoordsXY& scree
|
||||
*
|
||||
* @param window The window to invalidate (esi).
|
||||
*/
|
||||
template<typename TPred> static void WindowInvalidateByCondition(TPred pred)
|
||||
template<typename TPred>
|
||||
static void WindowInvalidateByCondition(TPred pred)
|
||||
{
|
||||
WindowVisitEach([pred](WindowBase* w) {
|
||||
if (pred(w))
|
||||
@@ -541,7 +543,8 @@ void WidgetInvalidate(WindowBase& w, WidgetIndex widgetIndex)
|
||||
{ w.windowPos + ScreenCoordsXY{ widget.right + 1, widget.bottom + 1 } } });
|
||||
}
|
||||
|
||||
template<typename TPred> static void widget_invalidate_by_condition(TPred pred)
|
||||
template<typename TPred>
|
||||
static void widget_invalidate_by_condition(TPred pred)
|
||||
{
|
||||
WindowVisitEach([pred](WindowBase* w) {
|
||||
if (pred(w))
|
||||
|
||||
Reference in New Issue
Block a user