1
0
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:
Richard Fine
2019-01-05 13:09:58 +00:00
committed by Ted John
parent 97bcc53637
commit b714f7b0e2

View File

@@ -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