Skip to content

Commit

Permalink
vwrite for enum can have name conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
sonndinh committed Feb 1, 2024
1 parent 52e7267 commit 84e59cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dds/idl/value_writer_generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ bool value_writer_generator::gen_enum(AST_Enum*,
for (std::vector<AST_EnumVal*>::const_iterator pos = contents.begin(), limit = contents.end();
pos != limit; ++pos) {
AST_EnumVal* const val = *pos;
const std::string value_name = (use_cxx11 ? (type_name + "::") : module_scope(name))
const std::string value_name = (use_cxx11 ? (type_name + "::") : ("::" + module_scope(name)))
+ val->local_name()->get_string();
be_global->impl_ <<
" case " << value_name << ":\n"
Expand Down

0 comments on commit 84e59cc

Please sign in to comment.