Replace sizeof/sizeof by std::size

This commit is contained in:
Jan Engelhardt
2024-12-22 16:46:42 +01:00
parent c99e57cfab
commit 401901c4f7
24 changed files with 31 additions and 31 deletions

View File

@@ -269,7 +269,7 @@ bool f_allow_objects_to_be_pushed_through_walls = false;
void DrawItemModel(grHardwareSurface *surf, int model_num);
#define NUM_EDIT_OBJTYPES (sizeof(edit_object_types) / sizeof(*edit_object_types))
#define NUM_EDIT_OBJTYPES std::size(edit_object_types)
/////////////////////////////////////////////////////////////////////////////
// CObjectDialog dialog