Use structured bindings

This commit is contained in:
Crash Cringle
2025-04-11 21:11:09 -04:00
committed by teejusb
parent 8524210969
commit ed5c87a10d
+1 -4
View File
@@ -423,11 +423,8 @@ void SongManager::LoadSongDir( RString sDir, LoadingWindow *ld, bool onlyAdditio
}
songIndex = 0;
for (auto const &pair : mapGroupSongDirs) // foreach dir in /Songs/
for (const auto& [sGroupDirName, arraySongDirs] : mapGroupSongDirs) // foreach dir in /Songs/
{
RString sGroupDirName = pair.first;
std::vector<RString> arraySongDirs = pair.second;
LOG->Trace("Attempting to load %i songs from \"%s\"", int(arraySongDirs.size()),
(sDir+sGroupDirName).c_str() );
int loaded = 0;