fix warning reorder

member initialization is executed in the order the members are defined
in the class, hence the member initializer list in the constructor
should be in the same order
This commit is contained in:
danielque
2021-12-02 10:23:49 +01:00
parent 981ff462c9
commit 5214948671

View File

@ -59,6 +59,9 @@ MarkovPath::MarkovPath
searchMinimum_(propsDict_.lookupOrDefault<bool>("searchMinimum",true)),
currentDatabase_(0),
numIntervals_(base.recM().numIntervals()),
recSteps_(0),
stepsInCurrentDatabase_(0),
startIndex_(propsDict_.lookupOrDefault<label>("startIndex",0)),
correlationSteps_(propsDict_.lookupOrDefault<labelList>("correlationStepsList",labelList(numIntervals_,0))),
intervalSizes_(numIntervals_),
intervalSizesCumulative_(numIntervals_),
@ -66,9 +69,6 @@ MarkovPath::MarkovPath
minIntervalSteps_(propsDict_.lookupOrDefault<labelList>("minIntervalStepsList",labelList(numIntervals_,0))),
minStepsWithinDatabase_(propsDict_.lookupOrDefault<labelList>("minStepsWithinDatabase",labelList(numIntervals_,0))),
numberOfIntervalsInEachDatabase_(numIntervals_),
recSteps_(0),
stepsInCurrentDatabase_(0),
startIndex_(propsDict_.lookupOrDefault<label>("startIndex",0)),
intervalWeights_(propsDict_.lookupOrDefault<scalarList>("intervalWeights",scalarList(numIntervals_,1.0))),
intervalWeightsCumulative_(intervalWeights_),
Pjump_(scalarList(numIntervals_,0.0)),