1
0
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:
Aaron van Geffen
2024-10-29 16:54:01 +01:00
committed by GitHub
parent 0669eba3b2
commit 80b63a5ae7
129 changed files with 867 additions and 430 deletions

View File

@@ -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))