diff --git a/src/common/utils/info_string.cpp b/src/common/utils/info_string.cpp index beb3bb8..229d0ef 100644 --- a/src/common/utils/info_string.cpp +++ b/src/common/utils/info_string.cpp @@ -41,20 +41,20 @@ namespace utils { const auto& key = key_values[i]; const auto& value = key_values[i + 1]; - this->key_value_pairs_[key] = value; + + 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] : this->key_value_pairs_) { - //if (first) first = false; - /*else*/ info_string.append("\\"); - info_string.append(key); info_string.append("\\"); info_string.append(val);