mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fixed missing include and signed/unsigned compare (Linux)
This commit is contained in:
parent
50cd9250c4
commit
3469c8bfb7
@ -239,7 +239,7 @@ QList<caf::PdmOptionItemInfo> RimCrossSection::calculateValueOptions(const caf::
|
||||
|
||||
options.push_back(caf::PdmOptionItemInfo("All", -1));
|
||||
|
||||
for (int bIdx = 0; bIdx < branchCount; ++bIdx)
|
||||
for (size_t bIdx = 0; bIdx < branchCount; ++bIdx)
|
||||
{
|
||||
options.push_back(caf::PdmOptionItemInfo(QString::number(bIdx + 1), QVariant::fromValue(bIdx)));
|
||||
}
|
||||
@ -299,7 +299,7 @@ std::vector< std::vector <cvf::Vec3d> > RimCrossSection::polyLines() const
|
||||
{
|
||||
updateWellCenterline();
|
||||
|
||||
if (0 <= m_branchIndex && m_branchIndex < m_wellBranchCenterlines.size())
|
||||
if (0 <= m_branchIndex && m_branchIndex < static_cast<int>(m_wellBranchCenterlines.size()))
|
||||
{
|
||||
lines.push_back(m_wellBranchCenterlines[m_branchIndex]);
|
||||
}
|
||||
@ -317,7 +317,7 @@ std::vector< std::vector <cvf::Vec3d> > RimCrossSection::polyLines() const
|
||||
|
||||
if (type == CS_WELL_PATH || type == CS_SIMULATION_WELL)
|
||||
{
|
||||
for (int lIdx = 0; lIdx < lines.size(); ++lIdx)
|
||||
for (size_t lIdx = 0; lIdx < lines.size(); ++lIdx)
|
||||
{
|
||||
std::vector<cvf::Vec3d>& polyLine = lines[lIdx];
|
||||
addExtents(polyLine);
|
||||
|
@ -34,6 +34,7 @@
|
||||
#include <QtGui>
|
||||
#include <QtNetwork>
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user