From 7d899a567d47959502828d115754744361f9c21b Mon Sep 17 00:00:00 2001 From: Jonas Rembser Date: Tue, 9 Jul 2024 00:40:29 +0200 Subject: [PATCH] [RF] Remove workaround around bug in previous Clad version Clad issue 636 has been resolved: https://github.com/vgvassilev/clad/issues/636 --- roofit/roofitcore/src/RooRealIntegral.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/roofit/roofitcore/src/RooRealIntegral.cxx b/roofit/roofitcore/src/RooRealIntegral.cxx index e40b7608f0d53..2cf06306864b1 100644 --- a/roofit/roofitcore/src/RooRealIntegral.cxx +++ b/roofit/roofitcore/src/RooRealIntegral.cxx @@ -1089,9 +1089,7 @@ void RooRealIntegral::translate(RooFit::Detail::CodeSquashContext &ctx) const << " double eps = d / n;\n" << " for (int i = 0; i < n; ++i) {\n" << " " << paramsName << "[" << intVarIdx << "] = " << intVar.getMin(intRange()) << " + eps * i;\n" - // TODO: the second "paramsName" should be nullptr, but until Clad issue - // 636 is fixed, we have to pass a non-nullptr dummy. - << " " << resName << " += " << " + " << ctx.buildCall(wrapper.funcName(), paramsName, paramsName, paramsName) << ";\n" + << " " << resName << " += " << " + " << ctx.buildCall(wrapper.funcName(), paramsName, nullptr, nullptr) << ";\n" << " }\n" << " " << resName << " *= " << " d / n;\n" << "}\n";