]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
RGW: change function parameters from value to refrence 18355/head
authorgaosibei <gaosb@inspur.com>
Tue, 17 Oct 2017 13:22:40 +0000 (21:22 +0800)
committergaosibei <gaosb@inspur.com>
Wed, 18 Oct 2017 00:49:45 +0000 (08:49 +0800)
Signed-off-by: Sibei Gao <gaosb@inspur.com>
src/rgw/rgw_acl_s3.h

index 149db40e70b1eaa9f6ec0845c610f572860a172b..41877667a3e67a4a9314da8db209b60e4026d3e6 100644 (file)
@@ -86,7 +86,7 @@ public:
   int rebuild(RGWRados *store, ACLOwner *owner, RGWAccessControlPolicy& dest);
   bool compare_group_name(string& id, ACLGroupTypeEnum group) override;
 
-  virtual int create_canned(ACLOwner& _owner, ACLOwner& bucket_owner, string canned_acl) {
+  virtual int create_canned(ACLOwner& _owner, ACLOwner& bucket_owner, const string& canned_acl) {
     RGWAccessControlList_S3& _acl = static_cast<RGWAccessControlList_S3 &>(acl);
     int ret = _acl.create_canned(_owner, bucket_owner, canned_acl);
     owner = _owner;