Use structured bindings

This commit is contained in:
Crash Cringle
2025-04-22 22:26:39 -07: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; 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()), LOG->Trace("Attempting to load %i songs from \"%s\"", int(arraySongDirs.size()),
(sDir+sGroupDirName).c_str() ); (sDir+sGroupDirName).c_str() );
int loaded = 0; int loaded = 0;