From 242030c5d521794af65d25b4366020483b4ba8a6 Mon Sep 17 00:00:00 2001 From: Ramzan Bekbulatov Date: Wed, 23 Nov 2016 17:03:34 +0300 Subject: StringTools: small fix for perfomance --- src/tools/StringTools.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tools') 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'); -- cgit v1.2.3