Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix be_visitor_map_cdr_op_ch #2151

Merged
merged 4 commits into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions TAO/TAO_IDL/be/be_visitor_map/cdr_op_ch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ be_visitor_map_cdr_op_ch::be_visitor_map_cdr_op_ch (
{
}

be_visitor_map_cdr_op_ch::~be_visitor_map_cdr_op_ch ()
{
}

int
be_visitor_map_cdr_op_ch::visit_map (be_map *node)
{
Expand Down
4 changes: 2 additions & 2 deletions TAO/TAO_IDL/be/be_visitor_map/map_ch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ int be_visitor_map_ch::visit_map (be_map *node)

*os << be_nl_2;

*os << "using " << node->local_name () << " = std::map<";
*os << "typedef " << "std::map<";

be_type* kt = node->key_type();
be_type* vt = node->value_type();
Expand Down Expand Up @@ -75,7 +75,7 @@ int be_visitor_map_ch::visit_map (be_map *node)
-1);
}

*os << ">;";
*os << "> " << node->local_name () << ";";

os->gen_endif ();
node->cli_hdr_gen (true);
Expand Down
4 changes: 2 additions & 2 deletions TAO/TAO_IDL/be_include/be_visitor_map/cdr_op_ch.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ class be_visitor_map_cdr_op_ch : public be_visitor_decl
be_visitor_map_cdr_op_ch (be_visitor_context *ctx);

/// destructor
~be_visitor_map_cdr_op_ch () = default;
~be_visitor_map_cdr_op_ch ();

/// visit map
int visit_map (be_map *node) override;
virtual int visit_map (be_map *node);
};

#endif /* _BE_VISITOR_MAP_CDR_OP_CH_H_ */