summaryrefslogtreecommitdiffstats
path: root/src/lib/dns
diff options
context:
space:
mode:
authorRazvan Becheriu <razvan@isc.org>2023-12-20 20:06:42 +0100
committerRazvan Becheriu <razvan@isc.org>2024-01-22 16:33:26 +0100
commit54dd674d0da13aac0cf2ca484842740477276e26 (patch)
tree884e70409a29a318cf9b038855204a8edbd042b0 /src/lib/dns
parent[#3119] Fixed some coverity reported defects (diff)
downloadkea-54dd674d0da13aac0cf2ca484842740477276e26.tar.xz
kea-54dd674d0da13aac0cf2ca484842740477276e26.zip
[#3119] use auto const& whenever possible
Diffstat (limited to 'src/lib/dns')
-rw-r--r--src/lib/dns/zone_checker.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/dns/zone_checker.cc b/src/lib/dns/zone_checker.cc
index def989627f..09f153899b 100644
--- a/src/lib/dns/zone_checker.cc
+++ b/src/lib/dns/zone_checker.cc
@@ -42,8 +42,7 @@ checkSOA(const Name& zone_name, const RRClass& zone_class,
size_t count = 0;
if (rrset) {
for (RdataIteratorPtr rit = rrset->getRdataIterator();
- !rit->isLast();
- rit->next(), ++count) {
+ !rit->isLast(); rit->next(), ++count) {
if (dynamic_cast<const rdata::generic::SOA*>(&rit->getCurrent()) ==
NULL) {
isc_throw(Unexpected, "Zone checker found bad RDATA in SOA");
@@ -102,8 +101,7 @@ checkNSNames(const Name& zone_name, const RRClass& zone_class,
}
for (RdataIteratorPtr rit = ns_rrset->getRdataIterator();
- !rit->isLast();
- rit->next()) {
+ !rit->isLast(); rit->next()) {
const rdata::generic::NS* ns_data =
dynamic_cast<const rdata::generic::NS*>(&rit->getCurrent());
if (ns_data == NULL) {