Browse Source

Updated commit style to be C89 compiliant

QGC4.4
pixhawk 15 years ago
parent
commit
a781aa7c1e
  1. 4
      src/comm/MAVLinkXMLParser.cc

4
src/comm/MAVLinkXMLParser.cc

@ -255,7 +255,7 @@ bool MAVLinkXMLParser::generate() @@ -255,7 +255,7 @@ bool MAVLinkXMLParser::generate()
QString fieldComment;
if (e2.text().length() > 0)
{
fieldComment = " // " + e2.text();
fieldComment = " /* " + e2.text() + "*/";
}
currEnum += "\t" + fieldName.toUpper() + "=" + fieldValue + "," + fieldComment + "\n";
}
@ -271,7 +271,7 @@ bool MAVLinkXMLParser::generate() @@ -271,7 +271,7 @@ bool MAVLinkXMLParser::generate()
int commaPosition = currEnum.lastIndexOf(",");
currEnum.remove(commaPosition, 1);
enums += "/** " + comment + " */\n" + currEnum + currEnumEnd;
enums += "/** @brief " + comment + " */\n" + currEnum + currEnumEnd;
} // Element is non-zero and element name is <enum>
n = n.nextSibling();
} // While through <enums>

Loading…
Cancel
Save