Browse Source

"There should be at most one statement per line." per BIND 9 coding guidelines.

(I did this for helping with code coverage reporting, but I understand
this file already has 100% coverage.)


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@928 e5f2f494-b856-4b98-b285-d166d9295462
Jeremy C. Reed 15 years ago
parent
commit
008ae4d355
1 changed files with 6 additions and 2 deletions
  1. 6 2
      src/lib/config/cpp/config_data.cc

+ 6 - 2
src/lib/config/cpp/config_data.cc

@@ -30,7 +30,9 @@ static ElementPtr
 find_spec_part(ElementPtr spec, const std::string& identifier)
 {
     //std::cout << "[XX] find_spec_part for " << identifier << std::endl;
-    if (!spec) { return ElementPtr(); }
+    if (!spec) {
+        return ElementPtr();
+    }
     //std::cout << "in: " << std::endl << spec << std::endl;
     ElementPtr spec_part = spec;
     if (identifier == "") {
@@ -103,7 +105,9 @@ spec_name_list(ElementPtr result, ElementPtr spec_part, std::string prefix, bool
             if (list_el->getType() == Element::map &&
                 list_el->contains("item_name")) {
                 std::string new_prefix = prefix;
-                if (prefix != "") { new_prefix += "/"; }
+                if (prefix != "") {
+                    new_prefix += "/";
+                }
                 new_prefix += list_el->get("item_name")->stringValue();
                 if (recurse && list_el->get("item_type")->stringValue() == "map") {
                     spec_name_list(result, list_el->get("map_item_spec"), new_prefix, recurse);