Browse Source

Review finding: Use constexpr instead of macro

Kim Kulling 2 years ago
parent
commit
bc8a122d88
1 changed files with 2 additions and 1 deletions
  1. 2 1
      code/PostProcessing/JoinVerticesProcess.cpp

+ 2 - 1
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");