Skip to content

Commit

Permalink
Merge pull request #2107 from iguessthislldo/igtd/maps-scope
Browse files Browse the repository at this point in the history
Fix Codacy Issues in be_map
  • Loading branch information
iguessthislldo authored Sep 1, 2023
2 parents 806844f + 41c666b commit 0853054
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 0853054

Please sign in to comment.