Skip to content

Commit

Permalink
Fix Codacy Issues in be_map
Browse files Browse the repository at this point in the history
  • Loading branch information
iguessthislldo committed Aug 31, 2023
1 parent 23853e9 commit 6e073fb
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 = 0;

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

// 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 != 0)
{
// 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 = 0;
ACE_NEW_RETURN (id,
Expand Down

0 comments on commit 6e073fb

Please sign in to comment.