Refactor: Make a copy of histogram data.

This commit is contained in:
Kristian Bendiksen
2021-05-03 10:16:25 +02:00
parent 01d88030d4
commit 359df8360e
7 changed files with 26 additions and 28 deletions

View File

@@ -31,7 +31,6 @@ RigHistogramData::RigHistogramData()
, mean( std::numeric_limits<double>::infinity() )
, weightedMean( std::numeric_limits<double>::infinity() )
, sum( 0.0 )
, histogram( nullptr )
{
}
@@ -56,5 +55,5 @@ bool RigHistogramData::isValid( double parameter ) const
//--------------------------------------------------------------------------------------------------
bool RigHistogramData::isHistogramVectorValid() const
{
return histogram && histogram->size() > 0 && isMinMaxValid();
return histogram.size() > 0 && isMinMaxValid();
}