From fdb363b43f515827a6b98877ea28a7ed0958ca69 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 8 May 2015 12:49:30 +0100 Subject: VclPtr: AlreadyOpenQueryBox doesn't get deleted Change-Id: I793b4377067bd3abc92c943aa0005fd4771b1460 --- uui/source/iahndl-locking.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'uui') diff --git a/uui/source/iahndl-locking.cxx b/uui/source/iahndl-locking.cxx index 0b7c5cfd5fea..cd55c388b13f 100644 --- a/uui/source/iahndl-locking.cxx +++ b/uui/source/iahndl-locking.cxx @@ -120,11 +120,10 @@ handleLockedDocumentRequest_( aMessage = UUIInteractionHelper::replaceMessageWithArguments( aMessage, aArguments ); - VclPtr< AlreadyOpenQueryBox > xDialog( - VclPtr::Create( pParent, + ScopedVclPtrInstance< AlreadyOpenQueryBox > xDialog( pParent, xManager.get(), aMessage, - nMode == UUI_DOC_OWN_SAVE_LOCK ) ); + nMode == UUI_DOC_OWN_SAVE_LOCK ); nResult = xDialog->Execute(); } -- cgit