Skip to content

Commit

Permalink
[NFC] Simplify code in TListOfEnums
Browse files Browse the repository at this point in the history
  • Loading branch information
pcanal committed Apr 6, 2022
1 parent 613c085 commit 3c21b04
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/meta/src/TListOfEnums.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,7 @@ TObject *TListOfEnums::FindObject(const char *name) const
TObject *result = THashList::FindObject(name);
if (!result) {
TInterpreter::DeclId_t decl;
if (GetClass()) decl = gInterpreter->GetEnum(GetClass(), name);
else decl = gInterpreter->GetEnum(nullptr, name);
decl = gInterpreter->GetEnum(GetClass(), name);
if (decl) result = const_cast<TListOfEnums *>(this)->Get(decl, name);
}
return result;
Expand Down

0 comments on commit 3c21b04

Please sign in to comment.