Fix Linux build warnings

This commit is contained in:
Bjørn Erik Jensen
2017-10-12 10:00:32 +02:00
parent 574effd6f2
commit a33a2411ef
2 changed files with 2 additions and 2 deletions

View File

@@ -584,7 +584,7 @@ std::pair<RimWellRftAddress, QDateTime> RimWellRftPlot::curveDefFromCurve(const
const RimEclipseResultCase* gridCase = dynamic_cast<const RimEclipseResultCase*>(gridCurve->rimCase());
if (gridCase != nullptr)
{
auto timeStepIndex = gridCurve->currentTimeStep();
size_t timeStepIndex = gridCurve->currentTimeStep();
auto timeSteps = timeStepsFromGridCase(gridCase);
if (timeStepIndex < timeSteps.size())
{

View File

@@ -319,7 +319,7 @@ QList<caf::PdmOptionItemInfo> RimWellPath::calculateValueOptions(const caf::PdmF
if (branchCount == 0)
branchCount = 1;
int index = 0;
size_t index = 0;
while(index < branchCount)
{
QString uiText = QString("Branch %1").arg(QString::number(index + 1));