change to const std::string&

This commit is contained in:
Chaoguang Lin 2020-07-30 16:27:40 -07:00
parent 2fc3bfc3bd
commit 96b1327568
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ protected:
class ManagementAPIError {
public:
static std::string toJsonString(bool retriable, std::string command, std::string msg) {
static std::string toJsonString(bool retriable, const std::string& command, const std::string& msg) {
json_spirit::mObject errorObj;
errorObj["retriable"] = retriable;
errorObj["command"] = command;