[Utils]: Update InfoString (#961)

This commit is contained in:
Edo 2023-04-22 10:13:55 +02:00 committed by GitHub
parent 1439f32bde
commit 4dcbe32c54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,13 +51,9 @@ namespace Utils
std::string InfoString::build() const
{
std::string infoString;
auto first = true;
for (const auto& [key, value] : this->keyValuePairs_)
{
if (first) first = false;
else infoString.append("\\");
infoString.append("\\");
infoString.append(key);
infoString.append("\\");
infoString.append(value);