From: gaosibei Date: Tue, 17 Oct 2017 13:22:40 +0000 (+0800) Subject: RGW: change function parameters from value to refrence X-Git-Tag: v13.0.1~517^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c677fbcedfccde71ec4b36b0de39777126cfd865;p=ceph-ci.git RGW: change function parameters from value to refrence Signed-off-by: Sibei Gao --- diff --git a/src/rgw/rgw_acl_s3.h b/src/rgw/rgw_acl_s3.h index 149db40e70b..41877667a3e 100644 --- a/src/rgw/rgw_acl_s3.h +++ b/src/rgw/rgw_acl_s3.h @@ -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(acl); int ret = _acl.create_canned(_owner, bucket_owner, canned_acl); owner = _owner;