Linux compile fixes

This commit is contained in:
Jacob Storen 2015-10-20 02:48:07 -07:00
parent 8b894d8515
commit b5bb62ed0a
3 changed files with 8 additions and 6 deletions

View File

@ -45,9 +45,9 @@ TEST(RimWellLogExtractionCurveImplTest, StripOffHugeValAtEndsAndInteriorOfVector
std::vector< std::pair<size_t, size_t> > valuesIntervals;
RigWellLogCurveDataTestInterface::calculateIntervalsOfValidValues(values, &valuesIntervals);
EXPECT_EQ(2, valuesIntervals.size());
EXPECT_EQ(2, valuesIntervals[0].first);
EXPECT_EQ(2, valuesIntervals[0].second);
EXPECT_EQ(5, valuesIntervals[1].first);
EXPECT_EQ(6, valuesIntervals[1].second);
EXPECT_EQ(2, static_cast<int>(valuesIntervals.size()));
EXPECT_EQ(2, static_cast<int>(valuesIntervals[0].first));
EXPECT_EQ(2, static_cast<int>(valuesIntervals[0].second));
EXPECT_EQ(5, static_cast<int>(valuesIntervals[1].first));
EXPECT_EQ(6, static_cast<int>(valuesIntervals[1].second));
}

View File

@ -124,7 +124,7 @@ void RimWellLogPlotTrack::addCurve(RimWellLogPlotCurve* curve)
void RimWellLogPlotTrack::removeCurve(RimWellLogPlotCurve* curve)
{
size_t index = curves.index(curve);
if (index >= 0 && index < curves.size())
if ( index < curves.size())
{
curves[index]->detachCurve();
curves.removeChildObject(curve);

View File

@ -18,6 +18,8 @@
/////////////////////////////////////////////////////////////////////////////////
#pragma once
#include <stddef.h>
class RimCellRangeFilter;
class RigMainGrid;
class RigFemPart;