From 4dcbe32c54a805b016e42ef4abdb3782da96ea18 Mon Sep 17 00:00:00 2001 From: Edo Date: Sat, 22 Apr 2023 10:13:55 +0200 Subject: [PATCH] [Utils]: Update InfoString (#961) --- src/Utils/InfoString.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Utils/InfoString.cpp b/src/Utils/InfoString.cpp index 0dbd6429..206f936e 100644 --- a/src/Utils/InfoString.cpp +++ b/src/Utils/InfoString.cpp @@ -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);