Parcourir la source

[2565] Rename constructor arguments to look nicer

Mukund Sivaraman il y a 12 ans
Parent
commit
9f5102a30e
3 fichiers modifiés avec 8 ajouts et 8 suppressions
  1. 2 2
      src/lib/dns/rrclass-placeholder.h
  2. 3 3
      src/lib/dns/rrclass.cc
  3. 3 3
      src/lib/dns/rrtype.cc

+ 2 - 2
src/lib/dns/rrclass-placeholder.h

@@ -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

+ 3 - 3
src/lib/dns/rrclass.cc

@@ -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);
     }
 }
 

+ 3 - 3
src/lib/dns/rrtype.cc

@@ -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);
     }
 }