Fixed Linux warnings

This commit is contained in:
Jacob Storen 2015-11-18 06:50:15 -08:00
parent 7d60b8e90d
commit cc1a8cf28d
3 changed files with 3 additions and 3 deletions

View File

@ -144,7 +144,7 @@ void RivReservoirPipesPartMgr::updatePipeResultColor(size_t frameIndex)
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
const std::vector< std::vector <cvf::Vec3d> >* RivReservoirPipesPartMgr::centerLineOfWellBranches(int wellIdx) const std::vector< std::vector <cvf::Vec3d> >* RivReservoirPipesPartMgr::centerLineOfWellBranches(int wellIdx)
{ {
if (wellIdx < m_wellPipesPartMgrs.size()) if (wellIdx < static_cast<int>(m_wellPipesPartMgrs.size()))
{ {
return &(m_wellPipesPartMgrs[wellIdx]->centerLineOfWellBranches()); return &(m_wellPipesPartMgrs[wellIdx]->centerLineOfWellBranches());
} }

View File

@ -91,7 +91,7 @@ cvf::ref<cvf::DrawableGeo> RivSingleCellPartGenerator::createMeshDrawable()
else if (m_geoMechCase && m_cellIndex != cvf::UNDEFINED_SIZE_T) else if (m_geoMechCase && m_cellIndex != cvf::UNDEFINED_SIZE_T)
{ {
CVF_ASSERT(m_geoMechCase->geoMechData()); CVF_ASSERT(m_geoMechCase->geoMechData());
CVF_ASSERT(m_geoMechCase->geoMechData()->femParts()->partCount() > m_gridIndex); CVF_ASSERT(m_geoMechCase->geoMechData()->femParts()->partCount() > static_cast<int>(m_gridIndex));
RigFemPart* femPart = m_geoMechCase->geoMechData()->femParts()->part(m_gridIndex); RigFemPart* femPart = m_geoMechCase->geoMechData()->femParts()->part(m_gridIndex);
CVF_ASSERT(femPart); CVF_ASSERT(femPart);

View File

@ -83,7 +83,7 @@ void RiuResultQwtPlot::addCurve(const QString& curveName, const cvf::Color3f& cu
RiuLineSegmentQwtPlotCurve* plotCurve = new RiuLineSegmentQwtPlotCurve("Curve 1"); RiuLineSegmentQwtPlotCurve* plotCurve = new RiuLineSegmentQwtPlotCurve("Curve 1");
QPolygonF points; QPolygonF points;
for (int i = 0; i < filteredDateTimes.size(); i++) for (size_t i = 0; i < filteredDateTimes.size(); i++)
{ {
double milliSecSinceEpoch = QwtDate::toDouble(filteredDateTimes[i]); double milliSecSinceEpoch = QwtDate::toDouble(filteredDateTimes[i]);
points << QPointF(milliSecSinceEpoch, filteredTimeHistoryValues[i]); points << QPointF(milliSecSinceEpoch, filteredTimeHistoryValues[i]);