Use const std::string& where possible

This hints to callers on usage.
This commit is contained in:
Andrew Gaul
2020-09-14 17:47:21 +09:00
parent 757f4caee8
commit 8d2bd874d7
6 changed files with 12 additions and 13 deletions

View File

@ -248,7 +248,7 @@ bool takeout_str_dquart(std::string& str)
//
// ex. target="http://......?keyword=value&..."
//
bool get_keyword_value(std::string& target, const char* keyword, std::string& value)
bool get_keyword_value(const std::string& target, const char* keyword, std::string& value)
{
if(!keyword){
return false;