diff --git a/math/mathmore/inc/Math/GSLMultiRootFinder.h b/math/mathmore/inc/Math/GSLMultiRootFinder.h index 65b04e0514774..1f5b1d2f5cf09 100644 --- a/math/mathmore/inc/Math/GSLMultiRootFinder.h +++ b/math/mathmore/inc/Math/GSLMultiRootFinder.h @@ -231,9 +231,9 @@ namespace Math { /// Return the status of last root finding int Status() const { return fStatus; } - /// Return the algorithm name used for solving - /// Note the name is available only after having called solved - /// Otherwise an empyty string is returned + /// Return the name of the algorithm used for solving + /// Note that the name is only available after Solve() + /// has been called. Returns nullptr if called before Solve(). const char * Name() const; /* diff --git a/math/mathmore/src/GSLMultiRootFinder.cxx b/math/mathmore/src/GSLMultiRootFinder.cxx index 3aeef0b0a2773..255736975db23 100644 --- a/math/mathmore/src/GSLMultiRootFinder.cxx +++ b/math/mathmore/src/GSLMultiRootFinder.cxx @@ -158,7 +158,7 @@ const double * GSLMultiRootFinder::FVal() const { } const char * GSLMultiRootFinder::Name() const { // get GSL name - return (fSolver != 0) ? fSolver->Name().c_str() : ""; + return (fSolver != 0) ? fSolver->Name().c_str() : nullptr; } // bool GSLMultiRootFinder::AddFunction( const ROOT::Math::IMultiGenFunction & func) {