diff options
Diffstat (limited to 'sfx2/source/dialog/mailmodel.cxx')
-rw-r--r-- | sfx2/source/dialog/mailmodel.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/dialog/mailmodel.cxx b/sfx2/source/dialog/mailmodel.cxx index 5aad8f3698a3..63e29270d6c2 100644 --- a/sfx2/source/dialog/mailmodel.cxx +++ b/sfx2/source/dialog/mailmodel.cxx @@ -498,8 +498,8 @@ SfxMailModel::SaveResult SfxMailModel::SaveDocumentAsFormat( xPrepareDispatch.set( xDispatchProvider->queryDispatch( aPrepareURL, OUString(), 0 )); if ( xPrepareDispatch.is() ) { - PrepareListener_Impl* pPrepareListener; - uno::Reference< css::frame::XStatusListener > xStatusListener = pPrepareListener = new PrepareListener_Impl; + PrepareListener_Impl* pPrepareListener = new PrepareListener_Impl; + uno::Reference< css::frame::XStatusListener > xStatusListener = pPrepareListener; xPrepareDispatch->addStatusListener( xStatusListener, aPrepareURL ); bNeedsPreparation = pPrepareListener->IsSet(); xPrepareDispatch->removeStatusListener( xStatusListener, aPrepareURL ); |