Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
a781aa7c
Commit
a781aa7c
authored
Oct 30, 2010
by
pixhawk
Browse files
Updated commit style to be C89 compiliant
parent
c48c8520
Changes
1
Show whitespace changes
Inline
Side-by-side
src/comm/MAVLinkXMLParser.cc
View file @
a781aa7c
...
...
@@ -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()
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>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment