Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Remove ROOT-internal preprocessor defines from public headers + pointer modernization.

Co-authored-by: Jonas Rembser <[email protected]>
  • Loading branch information
egpbos and guitargeek committed Jun 28, 2024
1 parent ffec8c9 commit 50ec910
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions roofit/roofitcore/inc/RooMinimizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,11 @@ class RooRealVar;
class RooArgSet;
class RooPlot;
class RooDataSet;
#ifdef ROOFIT_MULTIPROCESS
namespace RooFit {
namespace TestStatistics {
class LikelihoodGradientJob;
}
} // namespace RooFit
#endif // ROOFIT_MULTIPROCESS

class RooMinimizer : public TObject {
public:
Expand Down Expand Up @@ -163,9 +161,7 @@ class RooMinimizer : public TObject {
private:
friend class RooAbsMinimizerFcn;
friend class RooMinimizerFcn;
#ifdef ROOFIT_MULTIPROCESS
friend class RooFit::TestStatistics::LikelihoodGradientJob;
#endif // ROOFIT_MULTIPROCESS

std::unique_ptr<RooAbsReal::EvalErrorContext> makeEvalErrorContext() const;

Expand Down
4 changes: 2 additions & 2 deletions roofit/roofitcore/src/RooAbsMinimizerFcn.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ RooAbsMinimizerFcn::RooAbsMinimizerFcn(const RooAbsMinimizerFcn &other)
_evalCounter(other._evalCounter),
_nDim(other._nDim),
_optConst(other._optConst),
_floatParamList(new RooArgList(*other._floatParamList)),
_constParamList(new RooArgList(*other._constParamList)),
_floatParamList(std::make_unique<RooArgList>(*other._floatParamList)),
_constParamList(std::make_unique<RooArgList>(*other._constParamList)),
_initFloatParamList(std::make_unique<RooArgList>()),
_initConstParamList(std::make_unique<RooArgList>()),
_logfile(other._logfile)
Expand Down

0 comments on commit 50ec910

Please sign in to comment.