mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Removed compiler warnings on linux as well. Now there are (nearly)only ERT warnings left.
p4#: 20238
This commit is contained in:
@@ -142,7 +142,7 @@ bool RifEclipseOutputFileTools::keywordsOnFile(QStringList* keywords, size_t num
|
||||
}
|
||||
|
||||
// Append keyword to the list if it has the given number of values in total
|
||||
if (numKWValues == numDataItems)
|
||||
if (numKWValues == static_cast<int>(numDataItems))
|
||||
{
|
||||
keywords->append(QString(kw));
|
||||
}
|
||||
|
||||
@@ -140,8 +140,8 @@ void QtMouseState::updateFromMouseEvent(QGraphicsSceneMouseEvent* event)
|
||||
if (numMouseButtonsInState(m_mouseButtonState) == 1)
|
||||
{
|
||||
m_cleanButtonPressButton = buttonPressed;
|
||||
m_cleanButtonPressPosX = event->scenePos().x();
|
||||
m_cleanButtonPressPosY = event->scenePos().y();
|
||||
m_cleanButtonPressPosX = (int)event->scenePos().x();
|
||||
m_cleanButtonPressPosY = (int)event->scenePos().y();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -312,13 +312,12 @@ void ProgressInfoStatic::setProgress(size_t progressValue)
|
||||
if (progressValue == progressStack().back()) return; // Do nothing if no progress.
|
||||
|
||||
// Guard against the max value set for this level
|
||||
if (progressValue < 0 ) progressValue = 0;
|
||||
if (progressValue > maxProgressStack().back() ) progressValue = maxProgressStack().back();
|
||||
|
||||
progressStack().back() = progressValue;
|
||||
progressSpanStack().back() = 1;
|
||||
|
||||
assert(currentTotalProgress() <= progressDialog()->maximum());
|
||||
assert(static_cast<int>(currentTotalProgress()) <= progressDialog()->maximum());
|
||||
size_t totProg = currentTotalProgress();
|
||||
|
||||
progressDialog()->setMaximum(static_cast<int>(currentTotalMaxProgressValue()));
|
||||
|
||||
Reference in New Issue
Block a user