Review finding: Use constexpr instead of macro

pull/4940/head
Kim Kulling 2023-02-16 09:28:35 +01:00 committed by GitHub
parent 57fc7144a7
commit bc8a122d88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -252,7 +252,8 @@ private:
unsigned mNumColorChannels; unsigned mNumColorChannels;
}; };
#define JOINED_VERTICES_MARK 0x80000000u static constexpr siue_T JOINED_VERTICES_MARK = 0x80000000u;
// now start the JoinVerticesProcess // now start the JoinVerticesProcess
int JoinVerticesProcess::ProcessMesh( aiMesh* pMesh, unsigned int meshIndex) { int JoinVerticesProcess::ProcessMesh( aiMesh* pMesh, unsigned int meshIndex) {
static_assert( AI_MAX_NUMBER_OF_COLOR_SETS == 8, "AI_MAX_NUMBER_OF_COLOR_SETS == 8"); static_assert( AI_MAX_NUMBER_OF_COLOR_SETS == 8, "AI_MAX_NUMBER_OF_COLOR_SETS == 8");