From 96b132756847bd0a07b68ef2c29c6d5fd7f5e38f Mon Sep 17 00:00:00 2001 From: Chaoguang Lin Date: Thu, 30 Jul 2020 16:27:40 -0700 Subject: [PATCH] change to const std::string& --- fdbclient/SpecialKeySpace.actor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fdbclient/SpecialKeySpace.actor.h b/fdbclient/SpecialKeySpace.actor.h index 4b3c5c37e0..38a66abdba 100644 --- a/fdbclient/SpecialKeySpace.actor.h +++ b/fdbclient/SpecialKeySpace.actor.h @@ -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;