From b714f7b0e2093369bbecc9b76ea6e92a2b889aa9 Mon Sep 17 00:00:00 2001 From: Richard Fine Date: Sat, 5 Jan 2019 13:09:58 +0000 Subject: [PATCH] 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. --- src/openrct2-ui/windows/Guest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2-ui/windows/Guest.cpp b/src/openrct2-ui/windows/Guest.cpp index 6067940399..df7bdef750 100644 --- a/src/openrct2-ui/windows/Guest.cpp +++ b/src/openrct2-ui/windows/Guest.cpp @@ -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