diff options
author | Oleg Morozenkov <reo7sp@users.noreply.github.com> | 2016-11-23 17:45:36 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-23 17:45:36 +0300 |
commit | 623045ecbd920d762217b8fc4e351a923d0aa4d0 (patch) | |
tree | 477972e25b188ed84e891a22e6ce3fbd9f5643df | |
parent | 4d434eaa5fe9936dde30df7a3783a2117e023d4a (diff) | |
parent | 242030c5d521794af65d25b4366020483b4ba8a6 (diff) |
Merge pull request #28 from uburuntu/master
StringTools: small fix for perfomance
-rw-r--r-- | src/tools/StringTools.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/StringTools.cpp b/src/tools/StringTools.cpp index 0a6dbc3..c682b35 100644 --- a/src/tools/StringTools.cpp +++ b/src/tools/StringTools.cpp @@ -84,7 +84,7 @@ string generateRandomString(size_t length) { return result; } -string urlEncode(const string& value, const std::string additionalLegitChars) { +string urlEncode(const string& value, const std::string& additionalLegitChars) { static const string legitPunctuation = "-_.~"; ostringstream result; result.fill('0'); |