From 203a9ae1b391c90c5da1a1997bc169ff27852764 Mon Sep 17 00:00:00 2001 From: Rishabh Dave Date: Fri, 9 Jun 2023 02:03:33 +0530 Subject: [PATCH] src/auth: apply const qualifier to EntityName arg in set_caps() Signed-off-by: Rishabh Dave --- src/auth/KeyRing.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auth/KeyRing.h b/src/auth/KeyRing.h index c0fa28615ae19..f77a4f4b05487 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) { -- 2.39.5