Skip to content

Commit

Permalink
1705568849
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleh Kulykov committed Jan 18, 2024
1 parent 3f82494 commit 45dc503
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/plzma_encoder_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ namespace plzma {
}

// IProgress
STDMETHODIMP EncoderImpl::SetTotal(UInt64 size) {
STDMETHODIMP EncoderImpl::SetTotal(UInt64 size) throw() {
#if defined(LIBPLZMA_NO_PROGRESS)
return S_OK;
#else
return setProgressTotal(size);
#endif
}

STDMETHODIMP EncoderImpl::SetCompleted(const UInt64 *completeValue) {
STDMETHODIMP EncoderImpl::SetCompleted(const UInt64 *completeValue) throw() {
#if defined(LIBPLZMA_NO_PROGRESS)
return S_OK;
#else
Expand All @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -226,24 +226,24 @@ 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);
}
return S_OK;
}

// ICryptoGetTextPassword2
STDMETHODIMP EncoderImpl::CryptoGetTextPassword2(Int32 * passwordIsDefined, BSTR * password) {
STDMETHODIMP EncoderImpl::CryptoGetTextPassword2(Int32 * passwordIsDefined, BSTR * password) throw() {
if (hasOption(OptionRequirePassword)) {
return getTextPassword(passwordIsDefined, password);
}
Expand Down

0 comments on commit 45dc503

Please sign in to comment.