small cleanup (#918)

This commit is contained in:
Edo 2023-04-03 13:22:03 +02:00 committed by GitHub
parent 8617a8e520
commit 73292a598d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,22 +41,23 @@ namespace utils
{
const auto& key = key_values[i];
const auto& value = key_values[i + 1];
if (!this->key_value_pairs_.contains(key))
{
this->key_value_pairs_[key] = value;
}
}
}
std::string info_string::build() const
{
//auto first = true;
std::string info_string;
for (const auto& [key, val] : key_value_pairs_)
{
//if (first) first = false;
/*else*/ info_string.append("\\");
info_string.append(key); // Key
info_string.append("\\");
info_string.append(val); // Value
info_string.append(key);
info_string.append("\\");
info_string.append(val);
}
return info_string;