mirror of
https://github.com/love2d/love.git
synced 2026-08-18 03:34:23 +02:00
minor cleanup of some audio decoder code.
This commit is contained in:
@@ -52,12 +52,12 @@ bool FLACDecoder::accepts(const std::string &ext)
|
||||
// Please remove once it's no longer the case.
|
||||
static const std::string supported[] =
|
||||
{
|
||||
"flac", "ogg", ""
|
||||
"flac", "ogg"
|
||||
};
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user