From: bert hubert Date: Sun, 27 Sep 2015 15:06:30 +0000 (+0200) Subject: some const-correctness X-Git-Tag: dnsdist-1.0.0-alpha1~248^2~28^2~27^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=481e216ecee3141c75fa34893c4ab5aa5a1a4f48;p=thirdparty%2Fpdns.git some const-correctness --- diff --git a/pdns/lwres.cc b/pdns/lwres.cc index 6b657603f9..cc15d396a3 100644 --- a/pdns/lwres.cc +++ b/pdns/lwres.cc @@ -171,7 +171,6 @@ int asyncresolve(const ComboAddress& ip, const DNSName& domain, int type, bool d } lwr->d_records = mdp.d_answers; - EDNSOpts edo; if(EDNS0Level > 0 && getEDNSOpts(mdp, &edo)) { @@ -203,7 +202,7 @@ int asyncresolve(const ComboAddress& ip, const DNSName& domain, int type, bool d vector& LWResult::getResult() { if(d_result.empty()) { - for(auto i=d_records.begin(); i != d_records.end(); ++i) { + for(auto i=d_records.cbegin(); i != d_records.cend(); ++i) { DNSResourceRecord rr; rr.qtype=i->first.d_type; rr.qname=i->first.d_label;