Browse Source

[master] Fix cppcheck report about inefficient code

Mukund Sivaraman 12 years ago
parent
commit
81ddf65784
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/bin/d2/d_cfg_mgr.cc

+ 1 - 1
src/bin/d2/d_cfg_mgr.cc

@@ -140,7 +140,7 @@ DCfgMgrBase::parseConfig(isc::data::ConstElementPtr config_set) {
         // specific order if the list (parser_order_) is not empty; otherwise
         // elements are parsed in the order the value_map presents them.
 
-        if (parse_order_.size() > 0) {
+        if (!parse_order_.empty()) {
             // For each element_id in the parse order list, look for it in the
             // value map.  If the element exists in the map, pass it and it's
             // associated data in for parsing.