mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 00:55:20 +02:00
Value copy / allocation optimizations mostly in server, SAO and serialize code
This commit is contained in:
@@ -167,7 +167,7 @@ std::map<std::string, ModSpec> getModsInPath(
|
||||
return result;
|
||||
}
|
||||
|
||||
std::vector<ModSpec> flattenMods(std::map<std::string, ModSpec> mods)
|
||||
std::vector<ModSpec> flattenMods(const std::map<std::string, ModSpec> &mods)
|
||||
{
|
||||
std::vector<ModSpec> result;
|
||||
for (const auto &it : mods) {
|
||||
|
Reference in New Issue
Block a user