summaryrefslogtreecommitdiff
path: root/uui/source/iahndl.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-02-11 14:42:23 +0200
committerMichael Meeks <michael.meeks@collabora.com>2015-04-09 22:17:00 +0100
commit00f2787a4a68633206635743298926bf2e65a8fa (patch)
treeefc3a4f02b3d8acd69d25071499be5a475cb0338 /uui/source/iahndl.cxx
parentb3dcb2996b70caabda1939c9e85545c97d78404a (diff)
vclwidgets: wrap all vcl::Window subclasses allocated on stack in VclPtr
Change-Id: Ia8b0d84bbf69f9d8f85505d019acdded14e25133 Conflicts: sw/qa/tiledrendering/tiledrendering.cxx
Diffstat (limited to 'uui/source/iahndl.cxx')
-rw-r--r--uui/source/iahndl.cxx24
1 files changed, 12 insertions, 12 deletions
diff --git a/uui/source/iahndl.cxx b/uui/source/iahndl.cxx
index f265fe6370b4..64e18d87fd71 100644
--- a/uui/source/iahndl.cxx
+++ b/uui/source/iahndl.cxx
@@ -1024,9 +1024,9 @@ executeMessageBox(
{
SolarMutexGuard aGuard;
- MessBox xBox( pParent, nButtonMask, rTitle, rMessage );
+ VclPtr<MessBox> xBox(new MessBox(pParent, nButtonMask, rTitle, rMessage));
- sal_uInt16 aResult = xBox.Execute();
+ sal_uInt16 aResult = xBox->Execute();
switch( aResult )
{
case RET_OK:
@@ -1059,11 +1059,11 @@ NameClashResolveDialogResult executeSimpleNameClashResolveDialog( vcl::Window *p
if ( !xManager.get() )
return ABORT;
- NameClashDialog aDialog( pParent, xManager.get(), rTargetFolderURL,
- rClashingName, rProposedNewName, bAllowOverwrite );
+ VclPtr<NameClashDialog> aDialog(new NameClashDialog(pParent, xManager.get(), rTargetFolderURL,
+ rClashingName, rProposedNewName, bAllowOverwrite) );
- NameClashResolveDialogResult eResult = (NameClashResolveDialogResult) aDialog.Execute();
- rProposedNewName = aDialog.getNewName();
+ NameClashResolveDialogResult eResult = (NameClashResolveDialogResult) aDialog->Execute();
+ rProposedNewName = aDialog->getNewName();
return eResult;
}
@@ -1207,20 +1207,20 @@ UUIInteractionHelper::handleMacroConfirmRequest(
if ( pResMgr.get() )
{
bool bShowSignatures = aSignInfo.getLength() > 0;
- MacroWarning aWarning(
- getParentProperty(), bShowSignatures, *pResMgr.get() );
+ VclPtr<MacroWarning> aWarning(new MacroWarning(
+ getParentProperty(), bShowSignatures, *pResMgr.get()) );
- aWarning.SetDocumentURL( aDocumentURL );
+ aWarning->SetDocumentURL( aDocumentURL );
if ( aSignInfo.getLength() > 1 )
{
- aWarning.SetStorage( xZipStorage, aDocumentVersion, aSignInfo );
+ aWarning->SetStorage( xZipStorage, aDocumentVersion, aSignInfo );
}
else if ( aSignInfo.getLength() == 1 )
{
- aWarning.SetCertificate( aSignInfo[ 0 ].Signer );
+ aWarning->SetCertificate( aSignInfo[ 0 ].Signer );
}
- bApprove = aWarning.Execute() == RET_OK;
+ bApprove = aWarning->Execute() == RET_OK;
}
if ( bApprove && xApprove.is() )