From b5f49d4c0f97c29cb69241583cb9dd142b71d247 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Tue, 13 Nov 2018 22:42:28 -0800 Subject: [PATCH] Cleanup. --- include/bx/bx.h | 4 ++-- include/bx/filepath.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/bx/bx.h b/include/bx/bx.h index 4f5d1aa..e55c471 100644 --- a/include/bx/bx.h +++ b/include/bx/bx.h @@ -27,8 +27,8 @@ namespace bx { - const int32_t kExitSuccess = 0; - const int32_t kExitFailure = 1; + constexpr int32_t kExitSuccess = 0; + constexpr int32_t kExitFailure = 1; /// Template for avoiding MSVC: C4127: conditional expression is constant template diff --git a/include/bx/filepath.h b/include/bx/filepath.h index e539728..605f791 100644 --- a/include/bx/filepath.h +++ b/include/bx/filepath.h @@ -14,7 +14,7 @@ BX_ERROR_RESULT(BX_ERROR_NOT_DIRECTORY, BX_MAKEFOURCC('b', 'x', 0, 1) ); namespace bx { - const int32_t kMaxFilePath = 1024; + constexpr int32_t kMaxFilePath = 1024; /// Special predefined OS directories. ///