diff --git a/ApplicationCode/ProjectDataModel/RimHistogramData.cpp b/ApplicationCode/ProjectDataModel/RimHistogramData.cpp index 5172e16bfa..36db35193c 100644 --- a/ApplicationCode/ProjectDataModel/RimHistogramData.cpp +++ b/ApplicationCode/ProjectDataModel/RimHistogramData.cpp @@ -18,18 +18,18 @@ #include "RimHistogramData.h" -#include +#include //-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- RimHistogramData::RimHistogramData() - : min( HUGE_VAL ) - , max( HUGE_VAL ) - , p10( HUGE_VAL ) - , p90( HUGE_VAL ) - , mean( HUGE_VAL ) - , weightedMean( HUGE_VAL ) + : min( std::numeric_limits::max() ) + , max( std::numeric_limits::max() ) + , p10( std::numeric_limits::max() ) + , p90( std::numeric_limits::max() ) + , mean( std::numeric_limits::max() ) + , weightedMean( std::numeric_limits::max() ) , sum( 0.0 ) , histogram( nullptr ) { @@ -48,7 +48,7 @@ bool RimHistogramData::isMinMaxValid() const //-------------------------------------------------------------------------------------------------- bool RimHistogramData::isValid( double parameter ) const { - return parameter != HUGE_VAL && parameter != -HUGE_VAL; + return parameter != std::numeric_limits::max() && parameter != -std::numeric_limits::max(); } //--------------------------------------------------------------------------------------------------