Cleanup: various non functional changes for C++

This commit is contained in:
Campbell Barton
2025-09-20 16:26:42 +10:00
parent 198eb638b2
commit 4a6268e092
13 changed files with 22 additions and 25 deletions

View File

@@ -4706,8 +4706,7 @@ static void touch_seat_handle_frame(void *data, wl_touch * /*touch*/)
seat->touch.wl.surface_window = nullptr;
}
GHOST_ASSERT(touch_events_num <= sizeof(touch_events) / sizeof(touch_events[0]),
"Buffer overflow");
GHOST_ASSERT(touch_events_num <= ARRAY_SIZE(touch_events), "Buffer overflow");
/* Ensure events are ordered in time. */
if (UNLIKELY(touch_events_num > 1)) {