From: Danny Al-Gaaf Date: Thu, 20 Feb 2014 09:45:55 +0000 (+0100) Subject: Formatter::new_formatter(): pass const function parameter by reference X-Git-Tag: v0.79~151^2~11 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8f63fdb4f9e2cedcd471ea89b4f93f5d14046db9;p=ceph.git Formatter::new_formatter(): pass const function parameter by reference Signed-off-by: Danny Al-Gaaf --- diff --git a/src/common/Formatter.cc b/src/common/Formatter.cc index 4ef833a45f80..8a6aed2b5218 100644 --- a/src/common/Formatter.cc +++ b/src/common/Formatter.cc @@ -63,7 +63,7 @@ Formatter::~Formatter() } Formatter * -new_formatter(const std::string type) +new_formatter(const std::string &type) { std::string mytype = type; if (mytype == "") diff --git a/src/common/Formatter.h b/src/common/Formatter.h index ac68b7f461d9..87b225ac1e63 100644 --- a/src/common/Formatter.h +++ b/src/common/Formatter.h @@ -65,7 +65,7 @@ class Formatter { } }; -Formatter *new_formatter(const std::string type); +Formatter *new_formatter(const std::string &type); class JSONFormatter : public Formatter { public: