mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Simplify some code with C++17
This commit is contained in:
@@ -1127,9 +1127,9 @@ void RimAnalysisPlot::applyFilter( const RimPlotDataFilterItem* filter,
|
||||
|
||||
if ( filter->filterOperation() == RimPlotDataFilterItem::RANGE )
|
||||
{
|
||||
std::pair<double, double> minMax = filter->filterRangeMinMax();
|
||||
auto [min, max] = filter->filterRangeMinMax();
|
||||
|
||||
if ( minMax.first <= value && value <= minMax.second )
|
||||
if ( min <= value && value <= max )
|
||||
{
|
||||
casesToKeep.insert( sumCase );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user