]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: use const for RGWUserAdminOpState set commands
authorOrit Wasserman <owasserm@redhat.com>
Thu, 12 Apr 2018 10:10:16 +0000 (13:10 +0300)
committerOrit Wasserman <owasserm@redhat.com>
Thu, 17 May 2018 12:04:50 +0000 (15:04 +0300)
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
src/rgw/rgw_user.h

index c9bca868bd4e00f395bad85e0500af54857dc0a4..12c0c54d33ca13b3d688fa7c1206947a70fc2101 100644 (file)
@@ -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;