From c48c8520917e1000fc3cc0cdc08f1d298202dde1 Mon Sep 17 00:00:00 2001 From: pixhawk Date: Sat, 30 Oct 2010 15:07:04 +0200 Subject: [PATCH] Last fixes on comments handling --- src/comm/MAVLinkXMLParser.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/comm/MAVLinkXMLParser.cc b/src/comm/MAVLinkXMLParser.cc index 825d82ed9d..bae01d56c1 100644 --- a/src/comm/MAVLinkXMLParser.cc +++ b/src/comm/MAVLinkXMLParser.cc @@ -219,7 +219,6 @@ bool MAVLinkXMLParser::generate() // Everything sane, starting with enum content currEnum = "enum " + enumName.toUpper() + "\n{\n"; currEnumEnd = "};\n\n"; - comment = e.text(); int nextEnumValue = 0; @@ -260,9 +259,9 @@ bool MAVLinkXMLParser::generate() } currEnum += "\t" + fieldName.toUpper() + "=" + fieldValue + "," + fieldComment + "\n"; } - else if(!e.isNull() && e.tagName() == "description") + else if(!e2.isNull() && e2.tagName() == "description") { - comment = e.text() + comment; + comment = e2.text() + comment; } f = f.nextSibling(); } -- GitLab