From 3bf4ada33f09e155f3350602e7a4b6cec77e40f0 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 10 Apr 2015 15:51:48 +0200 Subject: dialogs lifetimes should be wrapped in ScopedVclPtr Change-Id: Ica8467af599fb3f9313bfa916fec8b7792a6000f --- uui/source/iahndl-filter.cxx | 2 +- uui/source/iahndl-locking.cxx | 4 ++-- uui/source/iahndl-ssl.cxx | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'uui') diff --git a/uui/source/iahndl-filter.cxx b/uui/source/iahndl-filter.cxx index 0ad263319cd4..a8d6c8d9625d 100644 --- a/uui/source/iahndl-filter.cxx +++ b/uui/source/iahndl-filter.cxx @@ -55,7 +55,7 @@ executeFilterDialog( { SolarMutexGuard aGuard; - VclPtr< uui::FilterDialog > xDialog(new uui::FilterDialog(pParent)); + ScopedVclPtr< uui::FilterDialog > xDialog(new uui::FilterDialog(pParent)); xDialog->SetURL(rURL); xDialog->ChangeFilters(&rFilters); diff --git a/uui/source/iahndl-locking.cxx b/uui/source/iahndl-locking.cxx index 1dd10cbe64b3..ad9ddb700142 100644 --- a/uui/source/iahndl-locking.cxx +++ b/uui/source/iahndl-locking.cxx @@ -93,7 +93,7 @@ handleLockedDocumentRequest_( aMessage = UUIInteractionHelper::replaceMessageWithArguments( aMessage, aArguments ); - VclPtr< OpenLockedQueryBox > xDialog(new OpenLockedQueryBox( + ScopedVclPtr< OpenLockedQueryBox > xDialog(new OpenLockedQueryBox( pParent, xManager.get(), aMessage ) ); nResult = xDialog->Execute(); } @@ -107,7 +107,7 @@ handleLockedDocumentRequest_( aMessage = UUIInteractionHelper::replaceMessageWithArguments( aMessage, aArguments ); - VclPtr< TryLaterQueryBox > xDialog( + ScopedVclPtr< TryLaterQueryBox > xDialog( new TryLaterQueryBox( pParent, xManager.get(), aMessage ) ); nResult = xDialog->Execute(); } diff --git a/uui/source/iahndl-ssl.cxx b/uui/source/iahndl-ssl.cxx index a747a9753366..0e12165b2de5 100644 --- a/uui/source/iahndl-ssl.cxx +++ b/uui/source/iahndl-ssl.cxx @@ -145,7 +145,7 @@ executeUnknownAuthDialog( { SolarMutexGuard aGuard; - VclPtr< UnknownAuthDialog > xDialog(new UnknownAuthDialog(pParent, rXCert, xContext)); + ScopedVclPtr< UnknownAuthDialog > xDialog(new UnknownAuthDialog(pParent, rXCert, xContext)); // Get correct resource string OUString aMessage; @@ -186,7 +186,7 @@ executeSSLWarnDialog( { SolarMutexGuard aGuard; - VclPtr< SSLWarnDialog > xDialog(new SSLWarnDialog(pParent, rXCert, xContext)); + ScopedVclPtr< SSLWarnDialog > xDialog(new SSLWarnDialog(pParent, rXCert, xContext)); // Get correct resource string OUString aMessage_1; -- cgit