From: Josh Soref Date: Fri, 28 Sep 2018 14:09:57 +0000 (-0400) Subject: Enforce style const MOADNSException &mde X-Git-Tag: dnsdist-1.3.3~87^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=16ce7f1878aecbc83c443ccae844b869a0e27e37;p=thirdparty%2Fpdns.git Enforce style const MOADNSException &mde There were a number of styles for this exception object. This enforces a single style (const, space before &). --- diff --git a/pdns/dnsdemog.cc b/pdns/dnsdemog.cc index 7abcefbdc0..cc9cc2b494 100644 --- a/pdns/dnsdemog.cc +++ b/pdns/dnsdemog.cc @@ -81,7 +81,7 @@ try cout <<", "<< ntohs(dh->arcount) <<");\n"; } - catch(MOADNSException& mde) { + catch(const MOADNSException &mde) { // cerr<<"error parsing packet: "<d_mdp.d_qname<<", "<d_mdp.d_qname<<", "<data, g_now); } - catch(MOADNSException &mde) { + catch(const MOADNSException &mde) { g_stats.clientParseError++; if(g_logCommonErrors) g_log<d_remote.toStringWithPort() <abortTransaction(); } } - catch(MOADNSException &re) { - g_log<abortTransaction();