mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-23 14:54:30 +01:00
Remove and replace C typedefs
`typedef struct/union/enum name { ... } name_again;` is not needed whe compiling C++, moving the name at the back to be in front of the object and removing `typedef` makes it usable the very same way.
This also replaces typedefs with the using keyword. They have better readability, especially for function pointer types, and would allow more flexibility when used with templates.
This commit is contained in:
committed by
Michael Steenbeek
parent
431c2a4e74
commit
55979a3fff
@@ -26,7 +26,7 @@
|
||||
#include "Sprite.h"
|
||||
#include "Footpath.h"
|
||||
|
||||
typedef bool (*map_animation_invalidate_event_handler)(sint32 x, sint32 y, sint32 baseZ);
|
||||
using map_animation_invalidate_event_handler = bool (*)(sint32 x, sint32 y, sint32 baseZ);
|
||||
|
||||
static bool map_animation_invalidate(rct_map_animation *obj);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user