]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
auth: AuthClientHandler::init() pass parameter by const ref
authorKefu Chai <kchai@redhat.com>
Wed, 14 Sep 2016 13:38:46 +0000 (21:38 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 14 Feb 2017 04:58:22 +0000 (12:58 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/auth/AuthClientHandler.h

index 52ba41abc85f5866da7b565056c110d9869b4801..b397f883c92301663305d3d510cc8523eb37ffa8 100644 (file)
@@ -39,7 +39,7 @@ public:
       lock("AuthClientHandler::lock") {}
   virtual ~AuthClientHandler() {}
 
-  void init(EntityName& n) { name = n; }
+  void init(const EntityName& n) { name = n; }
   
   void set_want_keys(__u32 keys) {
     RWLock::WLocker l(lock);