BIND 10 trac2157_2, updated. 72e963ce027a56e814d5404feee00aa0b4a45b15 [2157] editorial/style fixes: removed unnecessary '; ', constify

BIND 10 source code commits bind10-changes at lists.isc.org
Fri Dec 21 16:57:17 UTC 2012


The branch, trac2157_2 has been updated
       via  72e963ce027a56e814d5404feee00aa0b4a45b15 (commit)
      from  0f4c8ad79bcdf9810013fa667dd04bf0e67c21b5 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 72e963ce027a56e814d5404feee00aa0b4a45b15
Author: JINMEI Tatuya <jinmei at isc.org>
Date:   Fri Dec 21 08:57:02 2012 -0800

    [2157] editorial/style fixes: removed unnecessary ';', constify

-----------------------------------------------------------------------

Summary of changes:
 src/lib/statistics/counter_dict.h |   16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/lib/statistics/counter_dict.h b/src/lib/statistics/counter_dict.h
index 665d656..594418a 100644
--- a/src/lib/statistics/counter_dict.h
+++ b/src/lib/statistics/counter_dict.h
@@ -55,7 +55,7 @@ public:
         if (items == 0) {
             isc_throw(isc::InvalidParameter, "Items must not be 0");
         }
-    };
+    }
     void addElement(const std::string& name) {
         // throw if the element already exists
         if (dictionary_.count(name) != 0) {
@@ -66,16 +66,16 @@ public:
         // Create a new Counter and add to the map
         dictionary_.insert(
             DictionaryMap::value_type(name, CounterPtr(new Counter(items_))));
-    };
+    }
     void deleteElement(const std::string& name) {
-        size_t result = dictionary_.erase(name);
+        const size_t result = dictionary_.erase(name);
         if (result != 1) {
             // If an element with specified name does not exist, throw
             // isc::OutOfRange.
             isc_throw(isc::OutOfRange,
                       "Element " << name << " does not exist");
         }
-    };
+    }
     Counter& getElement(const std::string& name) {
         DictionaryMap::const_iterator i = dictionary_.find(name);
         if (i != dictionary_.end()) {
@@ -87,10 +87,10 @@ public:
             isc_throw(isc::OutOfRange,
                       "Element " << name << " does not exist");
         }
-    };
+    }
     Counter& operator[](const std::string& name) {
         return (getElement(name));
-    };
+    }
     /// \brief \c ConstIterator is a constant iterator that provides an
     /// interface for enumerating name of zones stored in CounterDictionary.
     ///
@@ -142,10 +142,10 @@ public:
 
     ConstIterator begin() const {
         return (CounterDictionary::ConstIterator(dictionary_.begin()));
-    };
+    }
     ConstIterator end() const {
         return (CounterDictionary::ConstIterator(dictionary_.end()));
-    };
+    }
 
     typedef ConstIterator const_iterator;
 };



More information about the bind10-changes mailing list