Use const auto in scriptextension

This commit is contained in:
FutureRave 2022-02-22 17:33:18 +00:00
parent 4ed09b1828
commit a7de8bdbce
No known key found for this signature in database
GPG Key ID: E883E2BC9657D955

View File

@ -120,9 +120,9 @@ namespace Components
}
}
auto p = std::filesystem::path(path);
std::string folder = p.parent_path().string();
std::string file = p.filename().string();
const auto p = std::filesystem::path(path);
const auto& folder = p.parent_path().string();
const auto& file = p.filename().string();
Game::Scr_AddInt(FileSystem::DeleteFile(folder, file));
});
}