Get rid of unnecessary variables in wxMSW wxProgressDialog

There doesn't seem to be any need to have both "foo" and "realFoo", just
reuse the existing variables instead.

No real changes.
This commit is contained in:
Vadim Zeitlin 2017-10-31 17:21:28 +01:00
parent e49cde166f
commit ed086ea044

View File

@ -987,14 +987,12 @@ void wxProgressDialog::UpdateExpandedInformation(int value)
unsigned long remainingTime;
UpdateTimeEstimates(value, elapsedTime, estimatedTime, remainingTime);
int realEstimatedTime = estimatedTime,
realRemainingTime = remainingTime;
if ( m_sharedData->m_progressBarMarquee )
{
// In indeterminate mode we don't have any estimation neither for the
// remaining nor for estimated time.
realEstimatedTime =
realRemainingTime = -1;
estimatedTime =
remainingTime = static_cast<unsigned long>(-1);
}
wxString expandedInformation;
@ -1014,7 +1012,7 @@ void wxProgressDialog::UpdateExpandedInformation(int value)
expandedInformation << GetEstimatedLabel()
<< " "
<< GetFormattedTime(realEstimatedTime);
<< GetFormattedTime(estimatedTime);
}
if ( HasPDFlag(wxPD_REMAINING_TIME) )
@ -1024,7 +1022,7 @@ void wxProgressDialog::UpdateExpandedInformation(int value)
expandedInformation << GetRemainingLabel()
<< " "
<< GetFormattedTime(realRemainingTime);
<< GetFormattedTime(remainingTime);
}
// Update with new timing information.