summaryrefslogtreecommitdiffstats
path: root/src/lib/dns/opcode.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/dns/opcode.h')
-rw-r--r--src/lib/dns/opcode.h28
1 files changed, 16 insertions, 12 deletions
diff --git a/src/lib/dns/opcode.h b/src/lib/dns/opcode.h
index 67dd57919b..9fbd815056 100644
--- a/src/lib/dns/opcode.h
+++ b/src/lib/dns/opcode.h
@@ -11,7 +11,7 @@
#include <ostream>
#ifndef OPCODE_H
-#define OPCODE_H 1
+#define OPCODE_H
namespace isc {
namespace dns {
@@ -75,7 +75,9 @@ public:
/// This method never throws an exception.
///
/// \return The underlying code value corresponding to the \c Opcode.
- CodeValue getCode() const { return (code_); }
+ CodeValue getCode() const {
+ return (code_);
+ }
/// \brief Return true iff two Opcodes are equal.
///
@@ -85,11 +87,14 @@ public:
///
/// \param other the \c Opcode object to compare against.
/// \return true if the two Opcodes are equal; otherwise false.
- bool equals(const Opcode& other) const
- { return (code_ == other.code_); }
+ bool equals(const Opcode& other) const {
+ return (code_ == other.code_);
+ }
/// \brief Same as \c equals().
- bool operator==(const Opcode& other) const { return (equals(other)); }
+ bool operator==(const Opcode& other) const {
+ return (equals(other));
+ }
/// \brief Return true iff two Opcodes are not equal.
///
@@ -97,11 +102,14 @@ public:
///
/// \param other the \c Opcode object to compare against.
/// \return true if the two Opcodes are not equal; otherwise false.
- bool nequals(const Opcode& other) const
- { return (code_ != other.code_); }
+ bool nequals(const Opcode& other) const {
+ return (code_ != other.code_);
+ }
/// \brief Same as \c nequals().
- bool operator!=(const Opcode& other) const { return (nequals(other)); }
+ bool operator!=(const Opcode& other) const {
+ return (nequals(other));
+ }
/// \brief Convert the \c Opcode to a string.
///
@@ -276,7 +284,3 @@ std::ostream& operator<<(std::ostream& os, const Opcode& opcode);
}
}
#endif // OPCODE_H
-
-// Local Variables:
-// mode: c++
-// End: