diff options
author | Stephen Morris <stephen@isc.org> | 2012-12-10 13:06:06 +0100 |
---|---|---|
committer | Stephen Morris <stephen@isc.org> | 2012-12-10 13:06:06 +0100 |
commit | e4e8de317591b5ac9fec818693fb2cdc5ce9e2a3 (patch) | |
tree | dbc81da6b203aa975d837c11ac9c41bd783acccd /src/lib/dhcp/option4_addrlst.h | |
parent | [2546] Unify deleteLease4() and deleteLease6() into a single deleteLease() (diff) | |
download | kea-e4e8de317591b5ac9fec818693fb2cdc5ce9e2a3.tar.xz kea-e4e8de317591b5ac9fec818693fb2cdc5ce9e2a3.zip |
[2546] Correct issues raised by cppcheck
Mostly adding "const" to methods that don't change the class, but
also correcting a few other points that were raised.
Diffstat (limited to 'src/lib/dhcp/option4_addrlst.h')
-rw-r--r-- | src/lib/dhcp/option4_addrlst.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/dhcp/option4_addrlst.h b/src/lib/dhcp/option4_addrlst.h index b266cbf0a9..927f75b930 100644 --- a/src/lib/dhcp/option4_addrlst.h +++ b/src/lib/dhcp/option4_addrlst.h @@ -111,10 +111,10 @@ public: /// We return a copy of our list. Although this includes overhead, /// it also makes this list safe to use after this option object /// is no longer available. As options are expected to hold only - /// a couple (1-3) addresses, the overhead is not that big. + /// a few (1-3) addresses, the overhead is not that big. /// /// @return address container with addresses - AddressContainer getAddresses() { return addrs_; }; + AddressContainer getAddresses() const { return addrs_; }; /// @brief Sets addresses list. /// |