minor cleanup of some audio decoder code.

This commit is contained in:
Alex Szpakowski
2022-04-18 20:12:08 -03:00
parent e61a664a8b
commit 71a7aed441
6 changed files with 17 additions and 18 deletions
+2 -3
View File
@@ -84,12 +84,11 @@ bool ModPlugDecoder::accepts(const std::string &ext)
"dsm", "far", "it", "j2b", "mdl", "med",
"mid", "mod", "mt2", "mtm", "okt", "pat",
"psm", "s3m", "stm", "ult", "umx", "xm",
""
};
for (int i = 0; !(supported[i].empty()); i++)
for (const auto &s : supported)
{
if (supported[i].compare(ext) == 0)
if (s.compare(ext) == 0)
return true;
}