clang: fix -Wdeprecated-declarations

This commit is contained in:
wmayer
2023-03-12 14:26:23 +01:00
committed by wwmayer
parent 82ac24de5c
commit be0e65fa7a
3 changed files with 4 additions and 4 deletions

View File

@@ -70,7 +70,7 @@ void DlgPreferencePackManagementImp::showEvent(QShowEvent* event)
for (const auto& mod : fs::directory_iterator(modDirectory)) {
auto packs = getPacksFromDirectory(mod);
if (!packs.empty()) {
auto modName = mod.path().leaf().string();
auto modName = mod.path().filename().string();
installedPacks.emplace(modName, packs);
}
}