From: Rishabh Dave Date: Thu, 8 Jun 2023 20:33:33 +0000 (+0530) Subject: src/auth: apply const qualifier to EntityName arg in set_caps() X-Git-Tag: v19.0.0~959^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=203a9ae1b391c90c5da1a1997bc169ff27852764;p=ceph.git src/auth: apply const qualifier to EntityName arg in set_caps() Signed-off-by: Rishabh Dave --- diff --git a/src/auth/KeyRing.h b/src/auth/KeyRing.h index c0fa28615ae1..f77a4f4b0548 100644 --- a/src/auth/KeyRing.h +++ b/src/auth/KeyRing.h @@ -89,7 +89,7 @@ public: void remove(const EntityName& name) { keys.erase(name); } - void set_caps(EntityName& name, std::map& caps) { + void set_caps(const EntityName& name, std::map& caps) { keys[name].caps = caps; } void set_key(EntityName& ename, CryptoKey& key) {