diff --git a/src/plzma_encoder_impl.cpp b/src/plzma_encoder_impl.cpp index d255961f..c47268e3 100644 --- a/src/plzma_encoder_impl.cpp +++ b/src/plzma_encoder_impl.cpp @@ -56,7 +56,7 @@ namespace plzma { } // IProgress - STDMETHODIMP EncoderImpl::SetTotal(UInt64 size) { + STDMETHODIMP EncoderImpl::SetTotal(UInt64 size) throw() { #if defined(LIBPLZMA_NO_PROGRESS) return S_OK; #else @@ -64,7 +64,7 @@ namespace plzma { #endif } - STDMETHODIMP EncoderImpl::SetCompleted(const UInt64 *completeValue) { + STDMETHODIMP EncoderImpl::SetCompleted(const UInt64 *completeValue) throw() { #if defined(LIBPLZMA_NO_PROGRESS) return S_OK; #else @@ -73,7 +73,7 @@ namespace plzma { } // IUpdateCallback2 - STDMETHODIMP EncoderImpl::GetUpdateItemInfo(UInt32 index, Int32 * newData, Int32 * newProperties, UInt32 * indexInArchive) { + STDMETHODIMP EncoderImpl::GetUpdateItemInfo(UInt32 index, Int32 * newData, Int32 * newProperties, UInt32 * indexInArchive) throw() { try { LIBPLZMA_LOCKGUARD(lock, _mutex) if (_result != S_OK) { @@ -102,7 +102,7 @@ namespace plzma { return S_OK; } - STDMETHODIMP EncoderImpl::GetProperty(UInt32 index, PROPID propID, PROPVARIANT * value) { + STDMETHODIMP EncoderImpl::GetProperty(UInt32 index, PROPID propID, PROPVARIANT * value) throw() { try { LIBPLZMA_LOCKGUARD(lock, _mutex) if (_result != S_OK) { @@ -154,7 +154,7 @@ namespace plzma { return S_OK; } - STDMETHODIMP EncoderImpl::GetStream(UInt32 index, ISequentialInStream ** inStream) { + STDMETHODIMP EncoderImpl::GetStream(UInt32 index, ISequentialInStream ** inStream) throw() { try { LIBPLZMA_LOCKGUARD(lock, _mutex) if (_result != S_OK) { @@ -194,7 +194,7 @@ namespace plzma { return S_OK; } - STDMETHODIMP EncoderImpl::SetOperationResult(Int32 operationResult) { + STDMETHODIMP EncoderImpl::SetOperationResult(Int32 operationResult) throw() { try { LIBPLZMA_LOCKGUARD(lock, _mutex) if (_result == S_OK) { @@ -226,16 +226,16 @@ namespace plzma { return S_OK; } - STDMETHODIMP EncoderImpl::GetVolumeSize(UInt32 index, UInt64 * size) { + STDMETHODIMP EncoderImpl::GetVolumeSize(UInt32 index, UInt64 * size) throw() { return S_OK; // unused } - STDMETHODIMP EncoderImpl::GetVolumeStream(UInt32 index, ISequentialOutStream ** volumeStream) { + STDMETHODIMP EncoderImpl::GetVolumeStream(UInt32 index, ISequentialOutStream ** volumeStream) throw() { return S_OK; // unused } // ICryptoGetTextPassword - STDMETHODIMP EncoderImpl::CryptoGetTextPassword(BSTR * password) { + STDMETHODIMP EncoderImpl::CryptoGetTextPassword(BSTR * password) throw() { if (hasOption(OptionRequirePassword)) { return getTextPassword(nullptr, password); } @@ -243,7 +243,7 @@ namespace plzma { } // ICryptoGetTextPassword2 - STDMETHODIMP EncoderImpl::CryptoGetTextPassword2(Int32 * passwordIsDefined, BSTR * password) { + STDMETHODIMP EncoderImpl::CryptoGetTextPassword2(Int32 * passwordIsDefined, BSTR * password) throw() { if (hasOption(OptionRequirePassword)) { return getTextPassword(passwordIsDefined, password); }