diff options
author | Ramzan Bekbulatov <ramzan.bekbulatov@rfdyn.ru> | 2016-11-23 17:03:34 +0300 |
---|---|---|
committer | Ramzan Bekbulatov <ramzan.bekbulatov@rfdyn.ru> | 2016-11-23 17:03:34 +0300 |
commit | 242030c5d521794af65d25b4366020483b4ba8a6 (patch) | |
tree | 477972e25b188ed84e891a22e6ce3fbd9f5643df /src/tools | |
parent | 4d434eaa5fe9936dde30df7a3783a2117e023d4a (diff) |
StringTools: small fix for perfomance
Diffstat (limited to 'src/tools')
-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'); |