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

View File

@ -669,7 +669,9 @@ void RimFishbonesMultipleSubs::computeSubLateralIndices()
m_subLateralIndices.clear();
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)
{
subLateralIndex.lateralIndices.push_back(lateralIndex);

View File

@ -740,7 +740,7 @@ void RimView::addDynamicWellPathsToModel(cvf::ModelBasicList* wellPathModelBasic
QDateTime currentTimeStamp;
std::vector<QDateTime> timeStamps = ownerCase()->timeStepDates();
if (currentTimeStep() < timeStamps.size())
if (currentTimeStep() < static_cast<int>(timeStamps.size()))
{
currentTimeStamp = timeStamps[currentTimeStep()];
}