mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-05 16:35:23 +00:00
"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
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user