fix various build warnings and errors with clang++

This commit is contained in:
Lion Kortlepel
2022-10-28 17:01:30 +02:00
parent c51d713969
commit a44f9b3dba
2 changed files with 7 additions and 3 deletions

View File

@@ -98,8 +98,8 @@ public:
return mLuaStates.size();
}
std::vector<std::string> GetLuaStateNames() {
std::vector<std::string> names{};
for(auto const& [stateId, _ ] : mLuaStates) {
std::vector<std::string> names {};
for (auto const& [stateId, _] : mLuaStates) {
names.push_back(stateId);
}
return names;