From c677fbcedfccde71ec4b36b0de39777126cfd865 Mon Sep 17 00:00:00 2001 From: gaosibei Date: Tue, 17 Oct 2017 21:22:40 +0800 Subject: [PATCH] RGW: change function parameters from value to refrence Signed-off-by: Sibei Gao --- src/rgw/rgw_acl_s3.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_acl_s3.h b/src/rgw/rgw_acl_s3.h index 149db40e70b1e..41877667a3e67 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; -- 2.47.3