slightly more modern c++ init style.

This commit is contained in:
2021-04-01 20:38:32 +02:00
parent 56f094dad0
commit 7de55705d2
2 changed files with 8 additions and 25 deletions

View File

@@ -50,10 +50,6 @@ ClassImp(PNL_PippardFitterGlobal)
*/
PNL_PippardFitterGlobal::PNL_PippardFitterGlobal()
{
fValid = true;
fStartupHandler = 0;
fRgeHandler = 0;
// read XML startup file
char startup_path_name[128];
TSAXParser *saxParser = new TSAXParser();
@@ -348,19 +344,6 @@ Double_t PNL_PippardFitterGlobal::XiP_T(const Double_t xi0, const Double_t meanF
ClassImp(PNL_PippardFitter)
//--------------------------------------------------------------------------
// Constructor
//--------------------------------------------------------------------------
/**
*
*/
PNL_PippardFitter::PNL_PippardFitter()
{
fValid = false;
fInvokedGlobal = false;
fPippardFitterGlobal = 0;
}
//--------------------------------------------------------------------------
// Destructor
//--------------------------------------------------------------------------
@@ -392,7 +375,7 @@ void PNL_PippardFitter::SetGlobalPart(std::vector<void*> &globalPart, UInt_t idx
if ((Int_t)globalPart.size() <= fIdxGlobal) {
fPippardFitterGlobal = new PNL_PippardFitterGlobal();
if (fPippardFitterGlobal == 0) {
if (fPippardFitterGlobal == nullptr) {
fValid = false;
std::cerr << std::endl << ">> PNL_PippardFitter::SetGlobalPart(): **ERROR** Couldn't invoke global user function object, sorry ..." << std::endl;
} else if (!fPippardFitterGlobal->IsValid()) {