auth: AuthClientHandler::init() pass parameter by const ref

Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2016-09-14 21:38:46 +08:00
parent a2fb70ddca
commit 5871a6f403

View 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);