forked from rosebudai/OpenRCT2-Web
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:
1 parent
97bcc53637
commit
b714f7b0e2
1 file changed
+1
-1
@@ -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