mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 11:03:00 +01:00
Use constexpr instead of const
For a static constant integer value, it's stylistically clearer to use constexpr instead of const. The resulting variable is implicitly const, but is also guaranteed to have a compile-time-computable value.
This commit is contained in:
@@ -66,7 +66,7 @@ enum WINDOW_GUEST_WIDGET_IDX {
|
||||
|
||||
validate_global_widx(WC_PEEP, WIDX_PICKUP);
|
||||
|
||||
static const int32_t TabWidth = 30;
|
||||
static constexpr int32_t TabWidth = 30;
|
||||
|
||||
static rct_widget window_guest_overview_widgets[] = {
|
||||
{WWT_FRAME, 0, 0, 191, 0, 156, 0xFFFFFFFF, STR_NONE}, // Panel / Background
|
||||
|
||||
Reference in New Issue
Block a user