From 1065d7996e359283f0f3e3804cdb77b4829a9191 Mon Sep 17 00:00:00 2001 From: "Adam C. Emerson" Date: Tue, 8 May 2018 19:23:02 -0400 Subject: [PATCH] rgw: Exceptions should be caught by const reference /Not/ by value. Signed-off-by: Adam C. Emerson --- src/rgw/rgw_acl_swift.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_acl_swift.cc b/src/rgw/rgw_acl_swift.cc index de489444852..18a99912747 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; } } -- 2.39.5