]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: Exceptions should be caught by const reference
authorAdam C. Emerson <aemerson@redhat.com>
Tue, 8 May 2018 23:23:02 +0000 (19:23 -0400)
committerAdam C. Emerson <aemerson@redhat.com>
Wed, 9 May 2018 17:26:29 +0000 (13:26 -0400)
/Not/ by value.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/rgw/rgw_acl_swift.cc

index de489444852d506640ffde5c268543722f433d66..18a999127470152793b222e12b1fc9239218feab 100644 (file)
@@ -106,7 +106,7 @@ static boost::optional<ACLGrant> 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;
   }
 }