summaryrefslogtreecommitdiff
path: root/uui/source/iahndl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'uui/source/iahndl.cxx')
-rw-r--r--uui/source/iahndl.cxx30
1 files changed, 13 insertions, 17 deletions
diff --git a/uui/source/iahndl.cxx b/uui/source/iahndl.cxx
index 30ea6ef76a21..9d5ba366f9d1 100644
--- a/uui/source/iahndl.cxx
+++ b/uui/source/iahndl.cxx
@@ -1156,25 +1156,21 @@ UUIInteractionHelper::handleMacroConfirmRequest(
bool bApprove = false;
- std::unique_ptr< ResMgr > pResMgr( ResMgr::CreateResMgr( "uui" ) );
- if ( pResMgr.get() )
- {
- bool bShowSignatures = aSignInfo.getLength() > 0;
- ScopedVclPtrInstance<MacroWarning> aWarning(
- getParentProperty(), bShowSignatures, *pResMgr.get() );
-
- aWarning->SetDocumentURL( aDocumentURL );
- if ( aSignInfo.getLength() > 1 )
- {
- aWarning->SetStorage( xZipStorage, aDocumentVersion, aSignInfo );
- }
- else if ( aSignInfo.getLength() == 1 )
- {
- aWarning->SetCertificate( aSignInfo[ 0 ].Signer );
- }
+ bool bShowSignatures = aSignInfo.getLength() > 0;
+ ScopedVclPtrInstance<MacroWarning> aWarning(
+ getParentProperty(), bShowSignatures );
- bApprove = aWarning->Execute() == RET_OK;
+ aWarning->SetDocumentURL( aDocumentURL );
+ if ( aSignInfo.getLength() > 1 )
+ {
+ aWarning->SetStorage( xZipStorage, aDocumentVersion, aSignInfo );
}
+ else if ( aSignInfo.getLength() == 1 )
+ {
+ aWarning->SetCertificate( aSignInfo[ 0 ].Signer );
+ }
+
+ bApprove = aWarning->Execute() == RET_OK;
if ( bApprove && xApprove.is() )
xApprove->select();