Browse Source

[2565] Fix indenting and untabify

Mukund Sivaraman 12 years ago
parent
commit
ffe973e3df
2 changed files with 7 additions and 8 deletions
  1. 4 5
      src/lib/dns/rrclass.cc
  2. 3 3
      src/lib/dns/rrparamregistry.h

+ 4 - 5
src/lib/dns/rrclass.cc

@@ -31,11 +31,10 @@ namespace isc {
 namespace dns {
 namespace dns {
 
 
 RRClass::RRClass(const std::string& classstr) {
 RRClass::RRClass(const std::string& classstr) {
-     if (!RRParamRegistry::getRegistry().textToClassCode(classstr,
-                                                         classcode_)) {
-          isc_throw(InvalidRRClass,
-                    "Unrecognized RR parameter string: " + classstr);
-     }
+    if (!RRParamRegistry::getRegistry().textToClassCode(classstr, classcode_)) {
+        isc_throw(InvalidRRClass,
+                  "Unrecognized RR parameter string: " + classstr);
+    }
 }
 }
 
 
 RRClass::RRClass(InputBuffer& buffer) {
 RRClass::RRClass(InputBuffer& buffer) {

+ 3 - 3
src/lib/dns/rrparamregistry.h

@@ -420,15 +420,15 @@ public:
     /// corresponding integer code.  If a mapping is found, it returns
     /// corresponding integer code.  If a mapping is found, it returns
     /// true with the associated class code in \c class_code; otherwise,
     /// true with the associated class code in \c class_code; otherwise,
     /// if the given string is in the form of "CLASSnnnn", it returns
     /// if the given string is in the form of "CLASSnnnn", it returns
-    /// true with the corresponding number as the class code in \c
-    /// class_code; otherwise, it returns false and \c class_code is
+    /// true with the corresponding number as the class code in
+    /// \c class_code; otherwise, it returns false and \c class_code is
     /// untouched.
     /// untouched.
     ///
     ///
     /// \param class_string The textual representation of the RR class.
     /// \param class_string The textual representation of the RR class.
     /// \param class_code Returns the RR class code in this argument.
     /// \param class_code Returns the RR class code in this argument.
     /// \return true if conversion is successful, false otherwise.
     /// \return true if conversion is successful, false otherwise.
     bool textToClassCode(const std::string& class_string,
     bool textToClassCode(const std::string& class_string,
-			 uint16_t& class_code) const;
+                         uint16_t& class_code) const;
 
 
     /// \brief Convert class code into its textual representation.
     /// \brief Convert class code into its textual representation.
     ///
     ///