From: Francis Dupont Date: Wed, 10 Aug 2022 13:53:21 +0000 (+0200) Subject: [#2401] Addressed comments X-Git-Tag: Kea-2.3.0~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=602860f1fccdbeef09e48d10fef6a60a11e99447;p=thirdparty%2Fkea.git [#2401] Addressed comments --- diff --git a/src/lib/dhcpsrv/network.cc b/src/lib/dhcpsrv/network.cc index 470c09d7d4..688762b7ab 100644 --- a/src/lib/dhcpsrv/network.cc +++ b/src/lib/dhcpsrv/network.cc @@ -36,7 +36,7 @@ Network::RelayInfo::hasAddresses() const { bool Network::RelayInfo::containsAddress(const asiolink::IOAddress& addr) const { - auto const& index = addresses_.get(); + auto const& index = addresses_.get(); return (index.find(addr) != index.end()); } diff --git a/src/lib/dhcpsrv/network.h b/src/lib/dhcpsrv/network.h index 314e8655c5..aab3727d4a 100644 --- a/src/lib/dhcpsrv/network.h +++ b/src/lib/dhcpsrv/network.h @@ -28,8 +28,8 @@ #include #include #include -#include +#include #include #include @@ -43,10 +43,10 @@ namespace isc { namespace dhcp { /// @brief Tag for the list of IO addresses as a list. -struct IOAddressListasListTag { }; +struct IOAddressListListTag { }; /// @brief Tag for the list of IO addresses as a set. -struct IOAddressListasSetTag { }; +struct IOAddressListSetTag { }; /// @brief List of IO addresses typedef boost::multi_index_container< @@ -56,11 +56,11 @@ typedef boost::multi_index_container< boost::multi_index::indexed_by< // First and default index allows for in order iteration. boost::multi_index::sequenced< - boost::multi_index::tag + boost::multi_index::tag >, // Second index allows for checking existence. boost::multi_index::hashed_unique< - boost::multi_index::tag, + boost::multi_index::tag, boost::multi_index::identity > >