diff --git a/src/Utils/Entities.cpp b/src/Utils/Entities.cpp index baf3962e..cbc8b494 100644 --- a/src/Utils/Entities.cpp +++ b/src/Utils/Entities.cpp @@ -6,13 +6,13 @@ namespace Utils { std::string entityString; - for (auto& entity : this->entities) + for (const auto& entity : this->entities) { entityString.append("{\n"); - for (auto& property : entity) + for (const auto& property : entity) { - entityString.push_back('"'); + entityString.append("\""); entityString.append(property.first); entityString.append("\" \""); entityString.append(property.second);