From 223a0b8ae7d297a284d3e3500cf31278c9d52448 Mon Sep 17 00:00:00 2001 From: Ivan Gagis Date: Tue, 31 Dec 2024 14:37:46 +0200 Subject: [PATCH] fix lint --- src/ruisapp/glue/sdl/glue.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ruisapp/glue/sdl/glue.cxx b/src/ruisapp/glue/sdl/glue.cxx index 7e01caa..b813b61 100644 --- a/src/ruisapp/glue/sdl/glue.cxx +++ b/src/ruisapp/glue/sdl/glue.cxx @@ -599,9 +599,11 @@ void application::set_mouse_cursor_visible(bool visible) // TODO: } -namespace{ -void main_loop_iteration(void* user_data){ +namespace { +void main_loop_iteration(void* user_data) +{ ASSERT(user_data) + // NOLINTNEXTLINE(cppcoreguidelines-pro-type-reinterpret-cast) auto app = reinterpret_cast(user_data); auto& ww = get_impl(*app); @@ -736,7 +738,7 @@ void main_loop_iteration(void* user_data){ update_window_rect(*app, ruis::rect(0, new_win_dims)); } } -} +} // namespace int main(int argc, const char** argv) {