replaced std::size() with AI_COUNT_OF for pre-C++20 compilers

This commit is contained in:
Krishty
2021-05-05 00:08:54 +02:00
parent 628cba9490
commit 0f3e6e2941
35 changed files with 36 additions and 34 deletions

View File

@@ -112,7 +112,7 @@ MDCImporter::~MDCImporter() {
// Returns whether the class can handle the format of the given file.
bool MDCImporter::CanRead(const std::string &pFile, IOSystem *pIOHandler, bool /*checkSig*/) const {
static const uint32_t tokens[] = { AI_MDC_MAGIC_NUMBER_LE };
return CheckMagicToken(pIOHandler, pFile, tokens, std::size(tokens));
return CheckMagicToken(pIOHandler, pFile, tokens, AI_COUNT_OF(tokens));
}
// ------------------------------------------------------------------------------------------------