]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Formatter::new_formatter(): pass const function parameter by reference
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 20 Feb 2014 09:45:55 +0000 (10:45 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 4 Mar 2014 14:43:18 +0000 (15:43 +0100)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/common/Formatter.cc
src/common/Formatter.h

index 4ef833a45f80776ed352aba4a24ee8c66192d641..8a6aed2b52181730b65b9b745671f71c25c5b843 100644 (file)
@@ -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 == "")
index ac68b7f461d979dc6720ccec92b8f9a4953c37cc..87b225ac1e6329a60c856971456a23fd714e3ede 100644 (file)
@@ -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: