2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 05:55:28 +00:00

[4497] Fix constness of methods in Option classes.

This commit is contained in:
Marcin Siodelski
2016-06-24 10:31:55 +02:00
parent 164e41a560
commit ee88ec857c
31 changed files with 130 additions and 131 deletions

View File

@@ -41,7 +41,7 @@ Option6StatusCode::Option6StatusCode(OptionBufferConstIter begin,
}
void
Option6StatusCode::pack(isc::util::OutputBuffer& buf) {
Option6StatusCode::pack(isc::util::OutputBuffer& buf) const {
// Pack option header.
packHeader(buf);
// Write numeric status code.
@@ -69,12 +69,12 @@ Option6StatusCode::unpack(OptionBufferConstIter begin, OptionBufferConstIter end
}
uint16_t
Option6StatusCode::len() {
Option6StatusCode::len() const {
return (getHeaderLen() + sizeof(uint16_t) + status_message_.size());
}
std::string
Option6StatusCode::toText(int indent) {
Option6StatusCode::toText(int indent) const {
std::ostringstream output;
output << headerToText(indent) << ": " << dataToText();