From: Adam C. Emerson Date: Tue, 8 May 2018 23:23:02 +0000 (-0400) Subject: rgw: Exceptions should be caught by const reference X-Git-Tag: v14.0.0~162^2~10 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1065d7996e359283f0f3e3804cdb77b4829a9191;p=ceph.git rgw: Exceptions should be caught by const reference /Not/ by value. Signed-off-by: Adam C. Emerson --- diff --git a/src/rgw/rgw_acl_swift.cc b/src/rgw/rgw_acl_swift.cc index de489444852d..18a999127470 100644 --- a/src/rgw/rgw_acl_swift.cc +++ b/src/rgw/rgw_acl_swift.cc @@ -106,7 +106,7 @@ static boost::optional referrer_to_grant(std::string url_spec, grant.set_referer(url_spec, is_negative ? 0 : perm); return grant; - } catch (std::out_of_range) { + } catch (const std::out_of_range&) { return boost::none; } }