[svn] commit: r928 - /trunk/src/lib/config/cpp/config_data.cc

BIND 10 source code commits bind10-changes at lists.isc.org
Tue Feb 23 16:06:20 UTC 2010


Author: jreed
Date: Tue Feb 23 16:06:20 2010
New Revision: 928

Log:
"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.)

Modified:
    trunk/src/lib/config/cpp/config_data.cc

Modified: trunk/src/lib/config/cpp/config_data.cc
==============================================================================
--- trunk/src/lib/config/cpp/config_data.cc (original)
+++ trunk/src/lib/config/cpp/config_data.cc Tue Feb 23 16:06:20 2010
@@ -30,7 +30,9 @@
 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 @@
             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);




More information about the bind10-changes mailing list