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: v13.2.0~37^2~9 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1a5142c61f51d8651d587351adbc66664c040f03;p=ceph.git rgw: Exceptions should be caught by const reference /Not/ by value. Signed-off-by: Adam C. Emerson (cherry picked from commit 1065d7996e359283f0f3e3804cdb77b4829a9191) --- 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; } }