Commit 008ae4d3 authored by Jeremy C. Reed's avatar Jeremy C. Reed
Browse files

"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
parent 33fdc92e
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment