We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f81958 commit 549691fCopy full SHA for 549691f
core/meta/src/TStreamerElement.cxx
@@ -30,6 +30,7 @@
30
#include "ThreadLocalStorage.h"
31
#include "TList.h"
32
#include "TRef.h"
33
+#include "TRefArray.h"
34
#include "TInterpreter.h"
35
#include "TError.h"
36
#include "TObjArray.h"
@@ -305,8 +306,8 @@ TClass *TStreamerElement::GetClassPointer() const
305
306
307
Int_t TStreamerElement::GetExecID() const
308
{
- //check if element is a TRef or TRefArray
309
- if (strncmp(fTypeName.Data(),"TRef",4) != 0) return 0;
+ TClass* const type = GetClassPointer();
310
+ if (!type || !(type->InheritsFrom(TRef::Class()) || type->InheritsFrom(TRefArray::Class()))) return 0;
311
312
//if the UniqueID of this element has already been set, we assume
313
//that it contains the exec id of a TRef object.
0 commit comments