Skip to content

Commit

Permalink
Merge branch 'jwi-autoptrcpp17_cleanup' of https://github.com/jwillem…
Browse files Browse the repository at this point in the history
…sen/ATCD into jwi-autoptrcpp17_cleanup
  • Loading branch information
jwillemsen committed Sep 4, 2023
2 parents c5fbb63 + eb32c46 commit eb0d6c1
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions TAO/TAO_IDL/be/be_map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,6 @@ be_map::gen_name ()
int
be_map::create_name (be_typedef *node)
{
UTL_ScopedName *n = nullptr;

// Scope in which we are defined.
be_decl *scope = nullptr;

// If there is a typedef node, we use its name as our name.
if (node)
{
Expand All @@ -187,14 +182,12 @@ be_map::create_name (be_typedef *node)
char *namebuf = this->gen_name ();

// Now see if we have a fully scoped name and if so, generate one.
UTL_Scope *us = this->defined_in ();

scope = dynamic_cast<be_scope*> (us)->decl ();
be_decl *const scope = dynamic_cast<be_scope*> (defined_in ())->decl ();

if (scope != nullptr)
{
// Make a copy of the enclosing scope's name.
n = static_cast<UTL_ScopedName *> (scope->name ()->copy ());
UTL_ScopedName *const n = static_cast<UTL_ScopedName *> (scope->name ()->copy ());

Identifier *id = nullptr;
ACE_NEW_RETURN (id,
Expand Down

0 comments on commit eb0d6c1

Please sign in to comment.