diff --git a/ApplicationCode/ModelVisualization/Riv3dWellLogCurveGeometryGenerator.cpp b/ApplicationCode/ModelVisualization/Riv3dWellLogCurveGeometryGenerator.cpp index c23dbfb107..a136034a9e 100644 --- a/ApplicationCode/ModelVisualization/Riv3dWellLogCurveGeometryGenerator.cpp +++ b/ApplicationCode/ModelVisualization/Riv3dWellLogCurveGeometryGenerator.cpp @@ -251,7 +251,7 @@ bool Riv3dWellLogCurveGeometryGenerator::findClosestPointOnCurve( const cvf::Vec *closestPoint = cvf::Vec3d::UNDEFINED; *measuredDepthAtPoint = cvf::UNDEFINED_DOUBLE; *valueAtClosestPoint = cvf::UNDEFINED_DOUBLE; - if ( m_curveVertices.size() < 2u ) false; + if ( m_curveVertices.size() < 2u ) return false; CVF_ASSERT( m_curveVertices.size() == m_curveValues.size() ); for ( size_t i = 1; i < m_curveVertices.size(); ++i ) { diff --git a/ApplicationCode/ProjectDataModel/Completions/RimFractureTemplateCollection.cpp b/ApplicationCode/ProjectDataModel/Completions/RimFractureTemplateCollection.cpp index 32cbc6bfb5..0f13ea39aa 100644 --- a/ApplicationCode/ProjectDataModel/Completions/RimFractureTemplateCollection.cpp +++ b/ApplicationCode/ProjectDataModel/Completions/RimFractureTemplateCollection.cpp @@ -406,7 +406,7 @@ void RimFractureTemplateCollection::initAfterRead() else { bool anySetShowStimPlanMeshIsSetToFalse = false; - for ( templateIt; templateIt != stimPlanFractureTemplatesInView.end(); templateIt++ ) + for ( ; templateIt != stimPlanFractureTemplatesInView.end(); templateIt++ ) { if ( templateIt->first->showStimPlanMesh() == false ) {