Removed compiler warnings on linux as well. Now there are (nearly)only ERT warnings left.

p4#: 20238
This commit is contained in:
Jacob Støren
2013-01-24 14:26:51 +01:00
parent 6465913e0d
commit 288c8bda71
3 changed files with 4 additions and 5 deletions

View File

@@ -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()));