Address reviewer comment.

pull/5157/head
Marco Feuerstein 2023-07-04 12:29:17 +02:00
parent 506baa21e6
commit bdde968677
1 changed files with 1 additions and 1 deletions

View File

@ -244,7 +244,7 @@ void BaseImporter::GetExtensionList(std::set<std::string> &extensions) {
// GetExtension() returns the part after the *last* dot, but some extensions // GetExtension() returns the part after the *last* dot, but some extensions
// have dots inside them, e.g. ogre.mesh.xml. Compare the entire end of the // have dots inside them, e.g. ogre.mesh.xml. Compare the entire end of the
// string. // string.
for (std::set<std::string>::const_iterator it = extensions.cbegin(); it != extensions.cend(); ++it) { for (auto it = extensions.cbegin(); it != extensions.cend(); ++it) {
// Yay for C++<20 not having std::string::ends_with() // Yay for C++<20 not having std::string::ends_with()
const std::string extension = "." + *it; const std::string extension = "." + *it;
if (extension.length() > pFile.length()) continue; if (extension.length() > pFile.length()) continue;