summaryrefslogtreecommitdiff
path: root/rotord/src/rotor.h
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2013-08-21 12:33:25 +0100
committerTim Redfern <tim@eclectronics.org>2013-08-21 12:33:25 +0100
commit393c70c5fc67fff87d189e77dffc5a22ed94a628 (patch)
tree059a3cdc54c87b698573fe69d22761025929933d /rotord/src/rotor.h
parentc53cf523b108845d074ea68d7fac592ec85e5a60 (diff)
waves finished
Diffstat (limited to 'rotord/src/rotor.h')
-rwxr-xr-xrotord/src/rotor.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/rotord/src/rotor.h b/rotord/src/rotor.h
index 67445e9..069e908 100755
--- a/rotord/src/rotor.h
+++ b/rotord/src/rotor.h
@@ -883,7 +883,6 @@ namespace Rotor {
XML.addValue("error","Node /"+t+"/ not found");
};
void list_node(std::pair<const std::basic_string<char>, Rotor::Node*> &type,xmlIO XML,int i=0){
- if (type.second->description!="") { //blank description = internal/ testing node
XML.addTag("node");
XML.addAttribute("node","type",type.first,i);
XML.addAttribute("node","inputs",type.second->duplicate_inputs?"expandable":"fixed",i);
@@ -946,13 +945,14 @@ namespace Rotor {
j++;
}
XML.popTag();
- }
}
void list_nodes(xmlIO XML){
int i=0;
- for (auto& type: type_map) { //c++11
- list_node(type,XML,i);
- i++;
+ for (auto& type: type_map) {
+ if (type.second->description!="") { //blank description = internal/ testing node
+ list_node(type,XML,i);
+ i++;
+ }
}
}
private: