From: Adam C. Emerson Date: Mon, 7 May 2018 20:13:18 +0000 (-0400) Subject: auto: Catch exceptions by const reference X-Git-Tag: v14.0.0~162^2~19 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=6e8188498e66ea46a58c6c46c44cecbb243d661d;p=ceph-ci.git auto: Catch exceptions by const reference Signed-off-by: Adam C. Emerson --- diff --git a/src/mon/AuthMonitor.cc b/src/mon/AuthMonitor.cc index aff80e9440e..dfb166cfb2c 100644 --- a/src/mon/AuthMonitor.cc +++ b/src/mon/AuthMonitor.cc @@ -1582,7 +1582,7 @@ bool AuthMonitor::_upgrade_format_to_dumpling() bufferlist::iterator it = p->second.caps["mon"].begin(); decode(mon_caps, it); } - catch (buffer::error) { + catch (const buffer::error&) { dout(10) << __func__ << " unable to parse mon cap for " << p->first << dendl; continue;