From: Orit Wasserman Date: Thu, 12 Apr 2018 10:10:16 +0000 (+0300) Subject: rgw: use const for RGWUserAdminOpState set commands X-Git-Tag: v14.0.0~37^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6b5d37904ec94ee2356b440f5563167c034086cb;p=ceph.git rgw: use const for RGWUserAdminOpState set commands Signed-off-by: Orit Wasserman --- diff --git a/src/rgw/rgw_user.h b/src/rgw/rgw_user.h index c9bca868bd4e..12c0c54d33ca 100644 --- a/src/rgw/rgw_user.h +++ b/src/rgw/rgw_user.h @@ -226,7 +226,7 @@ struct RGWUserAdminOpState { RGWQuotaInfo bucket_quota; RGWQuotaInfo user_quota; - void set_access_key(std::string& access_key) { + void set_access_key(const std::string& access_key) { if (access_key.empty()) return; @@ -236,7 +236,7 @@ struct RGWUserAdminOpState { key_op = true; } - void set_secret_key(std::string& secret_key) { + void set_secret_key(const std::string& secret_key) { if (secret_key.empty()) return; @@ -260,7 +260,7 @@ struct RGWUserAdminOpState { user_email_specified = true; } - void set_display_name(std::string& name) { + void set_display_name(const std::string& name) { if (name.empty()) return; @@ -289,7 +289,7 @@ struct RGWUserAdminOpState { subuser_specified = true; } - void set_caps(std::string& _caps) { + void set_caps(const std::string& _caps) { if (_caps.empty()) return;