mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Linux compile fixes
This commit is contained in:
parent
8b894d8515
commit
b5bb62ed0a
@ -45,9 +45,9 @@ TEST(RimWellLogExtractionCurveImplTest, StripOffHugeValAtEndsAndInteriorOfVector
|
|||||||
std::vector< std::pair<size_t, size_t> > valuesIntervals;
|
std::vector< std::pair<size_t, size_t> > valuesIntervals;
|
||||||
RigWellLogCurveDataTestInterface::calculateIntervalsOfValidValues(values, &valuesIntervals);
|
RigWellLogCurveDataTestInterface::calculateIntervalsOfValidValues(values, &valuesIntervals);
|
||||||
|
|
||||||
EXPECT_EQ(2, valuesIntervals.size());
|
EXPECT_EQ(2, static_cast<int>(valuesIntervals.size()));
|
||||||
EXPECT_EQ(2, valuesIntervals[0].first);
|
EXPECT_EQ(2, static_cast<int>(valuesIntervals[0].first));
|
||||||
EXPECT_EQ(2, valuesIntervals[0].second);
|
EXPECT_EQ(2, static_cast<int>(valuesIntervals[0].second));
|
||||||
EXPECT_EQ(5, valuesIntervals[1].first);
|
EXPECT_EQ(5, static_cast<int>(valuesIntervals[1].first));
|
||||||
EXPECT_EQ(6, valuesIntervals[1].second);
|
EXPECT_EQ(6, static_cast<int>(valuesIntervals[1].second));
|
||||||
}
|
}
|
||||||
|
@ -124,7 +124,7 @@ void RimWellLogPlotTrack::addCurve(RimWellLogPlotCurve* curve)
|
|||||||
void RimWellLogPlotTrack::removeCurve(RimWellLogPlotCurve* curve)
|
void RimWellLogPlotTrack::removeCurve(RimWellLogPlotCurve* curve)
|
||||||
{
|
{
|
||||||
size_t index = curves.index(curve);
|
size_t index = curves.index(curve);
|
||||||
if (index >= 0 && index < curves.size())
|
if ( index < curves.size())
|
||||||
{
|
{
|
||||||
curves[index]->detachCurve();
|
curves[index]->detachCurve();
|
||||||
curves.removeChildObject(curve);
|
curves.removeChildObject(curve);
|
||||||
|
@ -18,6 +18,8 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <stddef.h>
|
||||||
|
|
||||||
class RimCellRangeFilter;
|
class RimCellRangeFilter;
|
||||||
class RigMainGrid;
|
class RigMainGrid;
|
||||||
class RigFemPart;
|
class RigFemPart;
|
||||||
|
Loading…
Reference in New Issue
Block a user