mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
System : Use numeric_limits::max instead of INT_MAX
This commit is contained in:
parent
53d5c809ac
commit
2a840bae76
@ -26,12 +26,12 @@
|
||||
class RigFemFaceComparator
|
||||
{
|
||||
public:
|
||||
RigFemFaceComparator() : m_minMainFaceNodeIdx(INT_MAX), m_faceIdxToMinMainFaceNodeIdx(0) {}
|
||||
RigFemFaceComparator() : m_minMainFaceNodeIdx(std::numeric_limits<int>::max()), m_faceIdxToMinMainFaceNodeIdx(0) {}
|
||||
|
||||
void setMainFace(const int* elmNodes, const int * localFaceIndices, int faceNodeCount)
|
||||
{
|
||||
m_canonizedMainFaceIdxes.resize(faceNodeCount);
|
||||
m_minMainFaceNodeIdx = INT_MAX;
|
||||
m_minMainFaceNodeIdx = std::numeric_limits<int>::max();
|
||||
m_faceIdxToMinMainFaceNodeIdx = 0;
|
||||
|
||||
for(int fnIdx = 0; fnIdx < faceNodeCount; ++fnIdx)
|
||||
@ -51,7 +51,7 @@ public:
|
||||
if (faceNodeCount != static_cast<int>(m_canonizedMainFaceIdxes.size())) return false;
|
||||
|
||||
// Find min node index in face
|
||||
int minNodeIdx = INT_MAX;
|
||||
int minNodeIdx = std::numeric_limits<int>::max();
|
||||
int faceIdxToMinNodeIdx = 0;
|
||||
|
||||
for (int fnIdx = 0; fnIdx < faceNodeCount; ++fnIdx)
|
||||
|
@ -591,7 +591,7 @@ void Rim3dView::fieldChangedByUi(const caf::PdmFieldHandle* changedField, const
|
||||
// !! Should be able to specify legal range for number properties
|
||||
if (m_viewer)
|
||||
{
|
||||
m_viewer->animationControl()->setTimeout(maximumFrameRate != 0 ? 1000/maximumFrameRate : INT_MAX);
|
||||
m_viewer->animationControl()->setTimeout(maximumFrameRate != 0 ? 1000/maximumFrameRate : std::numeric_limits<int>::max());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user