Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Christian Butz
VTK
Commits
4a71f065
Commit
4a71f065
authored
Mar 28, 2005
by
Kenneth Moreland
Browse files
COMP: Enums in generated header should not end with a comma.
parent
ffbbd0bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Utilities/ParseOGLExt/ParseOGLExt.cxx
View file @
4a71f065
...
...
@@ -543,6 +543,7 @@ static void WriteClassDeclarationGuts(ostream &hfile, int type)
if
(
cExts
!=
consts
.
end
())
{
hfile
<<
" enum "
<<
cExts
->
first
.
name
<<
"_consts {"
<<
endl
;
bool
wroteFirst
=
false
;
for
(
list
<
Constant
>::
iterator
iconst
=
cExts
->
second
.
begin
();
iconst
!=
cExts
->
second
.
end
();
iconst
++
)
...
...
@@ -559,8 +560,15 @@ static void WriteClassDeclarationGuts(ostream &hfile, int type)
iconst
->
value
)
)
==
ConstantsAlreadyWritten
.
end
()
)
{
hfile
<<
" "
<<
iconst
->
name
<<
" = "
<<
iconst
->
value
<<
","
<<
endl
;
if
(
wroteFirst
)
{
hfile
<<
","
<<
endl
;
}
else
{
wroteFirst
=
true
;
}
hfile
<<
" "
<<
iconst
->
name
<<
" = "
<<
iconst
->
value
;
ConstantsAlreadyWritten
.
insert
(
make_pair
(
iconst
->
name
,
iconst
->
value
)
);
...
...
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