Skip to content

Commit

Permalink
Merge pull request #6201 from wmtan/FindBuiltInTypesFirst
Browse files Browse the repository at this point in the history
Look for built in types first
  • Loading branch information
ktf committed Nov 4, 2014
2 parents 0cb931a + 7221e45 commit 53b481f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions FWCore/Utilities/src/TypeWithDict.cc
Expand Up @@ -80,10 +80,6 @@ namespace edm {
if (it != typeMap.end()) {
return TypeWithDict(it->second, property);
}
TClass* theClass = TClass::GetClass(name.c_str());
if (theClass != nullptr && theClass->GetTypeInfo() != nullptr) {
return TypeWithDict(theClass, property);
}
TDataType* theDataType = gROOT->GetType(name.c_str());
if(theDataType) {
switch(theDataType->GetType()) {
Expand Down Expand Up @@ -128,6 +124,10 @@ namespace edm {
return TypeWithDict(typeid(void), property);
}

TClass* theClass = TClass::GetClass(name.c_str());
if (theClass != nullptr && theClass->GetTypeInfo() != nullptr) {
return TypeWithDict(theClass, property);
}
TEnum* theEnum = TEnum::GetEnum(name.c_str(), TEnum::kAutoload);
if(theEnum) {
return TypeWithDict(theEnum, name, property);
Expand Down

0 comments on commit 53b481f

Please sign in to comment.