From 0f47ff2cef94681148a6691c32a2c9c84f3027d8 Mon Sep 17 00:00:00 2001 From: Axel Naumann <Axel.Naumann@cern.ch> Date: Tue, 20 Nov 2012 08:43:16 +0000 Subject: [PATCH] Revert r47450: the spacing corrections must happen in TClingXYZ. git-svn-id: http://root.cern.ch/svn/root/trunk@47467 27541ba8-7e3a-0410-8455-c3a389f83636 --- roofit/roofitcore/src/RooCintUtils.cxx | 2 +- roofit/roofitcore/src/RooFactoryWSTool.cxx | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/roofit/roofitcore/src/RooCintUtils.cxx b/roofit/roofitcore/src/RooCintUtils.cxx index 97e7e753930..ac363bb10bb 100644 --- a/roofit/roofitcore/src/RooCintUtils.cxx +++ b/roofit/roofitcore/src/RooCintUtils.cxx @@ -83,7 +83,7 @@ namespace RooCintUtils while (gInterpreter->MethodArgInfo_Next(arg)) { // Require that first to arguments are of type const char* const char* argTypeName = gInterpreter->MethodArgInfo_TypeName(arg); - if (nreq<2 && string("const char *") != argTypeName) { + if (nreq<2 && string("const char*") != argTypeName) { continue ; } ret.push_back(argTypeName) ; diff --git a/roofit/roofitcore/src/RooFactoryWSTool.cxx b/roofit/roofitcore/src/RooFactoryWSTool.cxx index 58261683ce8..2d18ef69ffc 100644 --- a/roofit/roofitcore/src/RooFactoryWSTool.cxx +++ b/roofit/roofitcore/src/RooFactoryWSTool.cxx @@ -386,10 +386,8 @@ RooAbsArg* RooFactoryWSTool::createArg(const char* className, const char* objNam } else { btype = *ti ; } - if (btype[btype.length() - 1] == '&') { + if (btype.find("&")) { btype.erase(btype.size()-1,btype.size()) ; - while (btype[btype.length() - 1] == ' ') - btype.erase(btype.length() - 1, 1); } // If btype if a typedef, substitute it by the true type name -- GitLab