diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-05-08 12:49:30 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-05-08 12:51:36 +0100 |
commit | fdb363b43f515827a6b98877ea28a7ed0958ca69 (patch) | |
tree | 709b24ad3d65c2bc32edb312f398b2d9374ffee3 /uui | |
parent | 32186f005088fbace08b791df5cf5557f6e5fd24 (diff) |
VclPtr: AlreadyOpenQueryBox doesn't get deleted
Change-Id: I793b4377067bd3abc92c943aa0005fd4771b1460
Diffstat (limited to 'uui')
-rw-r--r-- | uui/source/iahndl-locking.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
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<AlreadyOpenQueryBox>::Create( pParent, + ScopedVclPtrInstance< AlreadyOpenQueryBox > xDialog( pParent, xManager.get(), aMessage, - nMode == UUI_DOC_OWN_SAVE_LOCK ) ); + nMode == UUI_DOC_OWN_SAVE_LOCK ); nResult = xDialog->Execute(); } |