summaryrefslogtreecommitdiffstats
path: root/src/lib/dhcp/option4_addrlst.h
diff options
context:
space:
mode:
authorStephen Morris <stephen@isc.org>2012-12-10 13:06:06 +0100
committerStephen Morris <stephen@isc.org>2012-12-10 13:06:06 +0100
commite4e8de317591b5ac9fec818693fb2cdc5ce9e2a3 (patch)
treedbc81da6b203aa975d837c11ac9c41bd783acccd /src/lib/dhcp/option4_addrlst.h
parent[2546] Unify deleteLease4() and deleteLease6() into a single deleteLease() (diff)
downloadkea-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.h4
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.
///