Linux : Fix compiler issues

This commit is contained in:
Magne Sjaastad
2017-08-11 15:22:40 +02:00
parent f096f78a55
commit a99eae7c24
2 changed files with 4 additions and 2 deletions
@@ -669,7 +669,9 @@ void RimFishbonesMultipleSubs::computeSubLateralIndices()
m_subLateralIndices.clear(); m_subLateralIndices.clear();
for (size_t subIndex = 0; subIndex < m_locationOfSubs().size(); ++subIndex) for (size_t subIndex = 0; subIndex < m_locationOfSubs().size(); ++subIndex)
{ {
SubLateralIndex subLateralIndex{ subIndex }; SubLateralIndex subLateralIndex;
subLateralIndex.subIndex = subIndex;
for (size_t lateralIndex = 0; lateralIndex < m_lateralCountPerSub(); ++lateralIndex) for (size_t lateralIndex = 0; lateralIndex < m_lateralCountPerSub(); ++lateralIndex)
{ {
subLateralIndex.lateralIndices.push_back(lateralIndex); subLateralIndex.lateralIndices.push_back(lateralIndex);
+1 -1
View File
@@ -740,7 +740,7 @@ void RimView::addDynamicWellPathsToModel(cvf::ModelBasicList* wellPathModelBasic
QDateTime currentTimeStamp; QDateTime currentTimeStamp;
std::vector<QDateTime> timeStamps = ownerCase()->timeStepDates(); std::vector<QDateTime> timeStamps = ownerCase()->timeStepDates();
if (currentTimeStep() < timeStamps.size()) if (currentTimeStep() < static_cast<int>(timeStamps.size()))
{ {
currentTimeStamp = timeStamps[currentTimeStep()]; currentTimeStamp = timeStamps[currentTimeStep()];
} }