Skip to content

Commit 89d309d

Browse files
committed
DPL: avoid InheritsFrom call
1 parent bf2e035 commit 89d309d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎Framework/Core/src/ASoA.cxx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ void* extractCCDBPayload(char* payload, size_t size, TClass const* cl, const cha
286286
auto result = object;
287287
// We need to handle some specific cases as ROOT ties them deeply
288288
// to the file they are contained in
289-
if (cl->InheritsFrom("TObject")) {
289+
if (cl->IsTObject()) {
290290
// make a clone
291291
// detach from the file
292292
auto tree = dynamic_cast<TTree*>((TObject*)object);

‎Framework/Core/src/DataRefUtils.cxx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ void* extractFromTFile(TFile& file, TClass const* cl, const char* what)
6262
auto result = object;
6363
// We need to handle some specific cases as ROOT ties them deeply
6464
// to the file they are contained in
65-
if (cl->InheritsFrom("TObject")) {
65+
if (cl->IsTObject()) {
6666
// make a clone
6767
// detach from the file
6868
auto tree = dynamic_cast<TTree*>((TObject*)object);

0 commit comments

Comments
 (0)