Skip to content
Snippets Groups Projects
Commit b5d3918d authored by Rene Brun's avatar Rene Brun
Browse files

From Philippe:

The enclosed patch fixes the case where the shared library is linked in the executable
(as opposed to loaded by TSystem::Load) and the executable does not have a TApplication object.


git-svn-id: http://root.cern.ch/svn/root/trunk@7743 27541ba8-7e3a-0410-8455-c3a389f83636
parent 49236ee3
Branches
Tags
No related merge requests found
// @(#)root/meta:$Name: $:$Id: TDataMember.cxx,v 1.17 2003/04/11 11:48:11 rdm Exp $ // @(#)root/meta:$Name: $:$Id: TDataMember.cxx,v 1.18 2003/09/01 07:09:11 brun Exp $
// Author: Fons Rademakers 04/02/95 // Author: Fons Rademakers 04/02/95
/************************************************************************* /*************************************************************************
...@@ -213,6 +213,12 @@ TDataMember::TDataMember(G__DataMemberInfo *info, TClass *cl) : TDictionary() ...@@ -213,6 +213,12 @@ TDataMember::TDataMember(G__DataMemberInfo *info, TClass *cl) : TDictionary()
// strncmp() also covers "unsigned long long" // strncmp() also covers "unsigned long long"
name = GetTypeName(); name = GetTypeName();
fDataType = gROOT->GetType(name); fDataType = gROOT->GetType(name);
if (fDataType==0) {
// humm we did not find it ... maybe it's a typedef that has not been loaded yet.
// (this can happen if the executable does not have a TApplication object).
fDataType = gROOT->GetType(name,kTRUE);
}
} else { } else {
fDataType = gROOT->GetType("Int_t"); fDataType = gROOT->GetType("Int_t");
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment