diff options
Diffstat (limited to 'CPP/7zip/Common/ProgressMt.cpp')
-rw-r--r-- | CPP/7zip/Common/ProgressMt.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/CPP/7zip/Common/ProgressMt.cpp b/CPP/7zip/Common/ProgressMt.cpp index c2714a2..ee21ab3 100644 --- a/CPP/7zip/Common/ProgressMt.cpp +++ b/CPP/7zip/Common/ProgressMt.cpp | |||
@@ -31,13 +31,13 @@ HRESULT CMtCompressProgressMixer::SetRatioInfo(unsigned index, const UInt64 *inS | |||
31 | NWindows::NSynchronization::CCriticalSectionLock lock(CriticalSection); | 31 | NWindows::NSynchronization::CCriticalSectionLock lock(CriticalSection); |
32 | if (inSize) | 32 | if (inSize) |
33 | { | 33 | { |
34 | UInt64 diff = *inSize - InSizes[index]; | 34 | const UInt64 diff = *inSize - InSizes[index]; |
35 | InSizes[index] = *inSize; | 35 | InSizes[index] = *inSize; |
36 | TotalInSize += diff; | 36 | TotalInSize += diff; |
37 | } | 37 | } |
38 | if (outSize) | 38 | if (outSize) |
39 | { | 39 | { |
40 | UInt64 diff = *outSize - OutSizes[index]; | 40 | const UInt64 diff = *outSize - OutSizes[index]; |
41 | OutSizes[index] = *outSize; | 41 | OutSizes[index] = *outSize; |
42 | TotalOutSize += diff; | 42 | TotalOutSize += diff; |
43 | } | 43 | } |
@@ -47,7 +47,7 @@ HRESULT CMtCompressProgressMixer::SetRatioInfo(unsigned index, const UInt64 *inS | |||
47 | } | 47 | } |
48 | 48 | ||
49 | 49 | ||
50 | STDMETHODIMP CMtCompressProgress::SetRatioInfo(const UInt64 *inSize, const UInt64 *outSize) | 50 | Z7_COM7F_IMF(CMtCompressProgress::SetRatioInfo(const UInt64 *inSize, const UInt64 *outSize)) |
51 | { | 51 | { |
52 | return _progress->SetRatioInfo(_index, inSize, outSize); | 52 | return _progress->SetRatioInfo(_index, inSize, outSize); |
53 | } | 53 | } |