From bc8a122d88fa01f521cd41660c0945de7a8fb7b7 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Thu, 16 Feb 2023 09:28:35 +0100 Subject: [PATCH] Review finding: Use constexpr instead of macro --- code/PostProcessing/JoinVerticesProcess.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/PostProcessing/JoinVerticesProcess.cpp b/code/PostProcessing/JoinVerticesProcess.cpp index 91f305b2d..10872cdb7 100644 --- a/code/PostProcessing/JoinVerticesProcess.cpp +++ b/code/PostProcessing/JoinVerticesProcess.cpp @@ -252,7 +252,8 @@ private: unsigned mNumColorChannels; }; -#define JOINED_VERTICES_MARK 0x80000000u +static constexpr siue_T JOINED_VERTICES_MARK = 0x80000000u; + // now start the JoinVerticesProcess int JoinVerticesProcess::ProcessMesh( aiMesh* pMesh, unsigned int meshIndex) { static_assert( AI_MAX_NUMBER_OF_COLOR_SETS == 8, "AI_MAX_NUMBER_OF_COLOR_SETS == 8");