We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d424a62 commit f5f0cb9Copy full SHA for f5f0cb9
src/utils/Utils.cpp
@@ -55,9 +55,9 @@ namespace Utils
55
56
for (size_t pos = 0; std::string::npos != pos;)
57
{
58
- size_t delimiter = str.find(sep, pos);
+ const size_t delimiter = str.find(sep, pos);
59
60
- std::string value = str.substr(pos, delimiter);
+ std::string value = str.substr(pos, delimiter - pos);
61
trim(value);
62
63
values.emplace_back(std::move(value) );
@@ -865,4 +865,4 @@ namespace Utils
865
866
return decoded;
867
}
868
-};
+}
src/utils/Utils.h
@@ -137,4 +137,4 @@ namespace Utils
137
138
std::string urlEncode(const std::string &str);
139
std::string urlDecode(const std::string &str);
140
0 commit comments