]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2565] Rename constructor arguments to look nicer
authorMukund Sivaraman <muks@isc.org>
Thu, 27 Dec 2012 11:28:26 +0000 (16:58 +0530)
committerMukund Sivaraman <muks@isc.org>
Thu, 27 Dec 2012 11:40:29 +0000 (17:10 +0530)
src/lib/dns/rrclass-placeholder.h
src/lib/dns/rrclass.cc
src/lib/dns/rrtype.cc

index cb958df364f9fa6a7ab880167e46b9dacca95504..1ff416305150b03159d43543c5312e236e7b3755 100644 (file)
@@ -135,8 +135,8 @@ public:
     /// If the given string is not recognized as a valid representation of
     /// an RR class, an exception of class \c InvalidRRClass will be thrown.
     ///
-    /// \param classstr A string representation of the \c RRClass
-    explicit RRClass(const std::string& classstr);
+    /// \param class_str A string representation of the \c RRClass
+    explicit RRClass(const std::string& class_str);
     /// Constructor from wire-format data.
     ///
     /// The \c buffer parameter normally stores a complete DNS message
index 3ae860d01b95387e673bc0598d32a21b93b82a12..4874a9b105c097485b9fb12373cae04a6306bee3 100644 (file)
@@ -30,10 +30,10 @@ using namespace isc::util;
 namespace isc {
 namespace dns {
 
-RRClass::RRClass(const std::string& classstr) {
-    if (!RRParamRegistry::getRegistry().textToClassCode(classstr, classcode_)) {
+RRClass::RRClass(const std::string& class_str) {
+    if (!RRParamRegistry::getRegistry().textToClassCode(class_str, classcode_)) {
         isc_throw(InvalidRRClass,
-                  "Unrecognized RR parameter string: " + classstr);
+                  "Unrecognized RR parameter string: " + class_str);
     }
 }
 
index fb523dc5a7007399866769f92ec6021f7a9919c2..fd981f2f60a4f119697698861da075383bce4e1f 100644 (file)
@@ -31,10 +31,10 @@ using isc::dns::RRType;
 namespace isc {
 namespace dns {
 
-RRType::RRType(const std::string& typestr) {
-    if (!RRParamRegistry::getRegistry().textToTypeCode(typestr, typecode_)) {
+RRType::RRType(const std::string& type_str) {
+    if (!RRParamRegistry::getRegistry().textToTypeCode(type_str, typecode_)) {
         isc_throw(InvalidRRType,
-                  "Unrecognized RR parameter string: " + typestr);
+                  "Unrecognized RR parameter string: " + type_str);
     }
 }