Skip to content

Commit

Permalink
Merge pull request #2151 from tmayoff/ace6tao2
Browse files Browse the repository at this point in the history
Fix be_visitor_map_cdr_op_ch
  • Loading branch information
mitza-oci authored Oct 26, 2023
2 parents 1bf3ec8 + 22d6365 commit a8bfb31
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
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_ */

0 comments on commit a8bfb31

Please sign in to comment.