diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-10-22 16:21:12 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-10-22 21:56:13 +0200 |
commit | c816cb847da9a3302f23e113171c81fed6b319c0 (patch) | |
tree | 59c68cf6d5008e65dbdd379cbbe6fca5a887ee8b /sfx2/source/dialog | |
parent | 7354da6ccfd0492a3f38ff07ce65500ec9f727b7 (diff) |
pvs-studio: V571 Recurring check
Change-Id: I1ad7bcfa557b38488adf26b434433e6bae259f43
Reviewed-on: https://gerrit.libreoffice.org/62190
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2/source/dialog')
-rw-r--r-- | sfx2/source/dialog/mailmodel.cxx | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/sfx2/source/dialog/mailmodel.cxx b/sfx2/source/dialog/mailmodel.cxx index 894496c38a5b..7e2d8f71b666 100644 --- a/sfx2/source/dialog/mailmodel.cxx +++ b/sfx2/source/dialog/mailmodel.cxx @@ -537,20 +537,17 @@ SfxMailModel::SaveResult SfxMailModel::SaveDocumentAsFormat( { if( bNeedsPreparation && xPrepareDispatch.is() ) { - if ( xPrepareDispatch.is() ) + try + { + css::uno::Sequence< css::beans::PropertyValue > aDispatchArgs; + xPrepareDispatch->dispatch( aPrepareURL, aDispatchArgs ); + } + catch ( css::uno::RuntimeException& ) + { + throw; + } + catch ( css::uno::Exception& ) { - try - { - css::uno::Sequence< css::beans::PropertyValue > aDispatchArgs; - xPrepareDispatch->dispatch( aPrepareURL, aDispatchArgs ); - } - catch ( css::uno::RuntimeException& ) - { - throw; - } - catch ( css::uno::Exception& ) - { - } } } |