Guest User

Untitled

a guest
Mar 18th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. diff --git a/roofit/roofitcore/src/RooCintUtils.cxx b/roofit/roofitcore/src/RooCintUtils.cxx
  2. index 314aabfbec..829654dc2e 100644
  3. --- a/roofit/roofitcore/src/RooCintUtils.cxx
  4. +++ b/roofit/roofitcore/src/RooCintUtils.cxx
  5. @@ -25,6 +25,7 @@
  6.  
  7. #include "RooMsgService.h"
  8. #include "TInterpreter.h"
  9. +#include "TEnum.h"
  10.  
  11. #include <string.h>
  12. #include <string>
  13. @@ -116,25 +117,7 @@ namespace RooCintUtils
  14. strlcpy(buf,typeName,256) ;
  15. char* className = strtok(buf,":") ;
  16.  
  17. - // Chop any class name prefix from value
  18. - if (strrchr(value,':')) {
  19. - value = strrchr(value,':')+1 ;
  20. - }
  21. -
  22. - ClassInfo_t* cls = gInterpreter->ClassInfo_Factory(className);
  23. - DataMemberInfo_t* dm = gInterpreter->DataMemberInfo_Factory(cls);
  24. -
  25. - Bool_t res;
  26. -
  27. - if (string(value)==gInterpreter->DataMemberInfo_Name(dm))
  28. - res = kTRUE;
  29. - else
  30. - res = kFALSE;
  31. -
  32. - gInterpreter->DataMemberInfo_Delete(dm);
  33. - gInterpreter->ClassInfo_Delete(cls);
  34. -
  35. - return res;
  36. + return (TEnum::GetEnum(className) == TEnum::GetEnum(value));
  37. }
  38. }
Add Comment
Please, Sign In to add comment