Use const std::string& where possible
This hints to callers on usage.
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user