summaryrefslogtreecommitdiff
path: root/rotord/src/rotor.h
diff options
context:
space:
mode:
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: