summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-05-08 12:49:30 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-05-08 12:51:36 +0100
commitfdb363b43f515827a6b98877ea28a7ed0958ca69 (patch)
tree709b24ad3d65c2bc32edb312f398b2d9374ffee3
parent32186f005088fbace08b791df5cf5557f6e5fd24 (diff)
VclPtr: AlreadyOpenQueryBox doesn't get deleted
Change-Id: I793b4377067bd3abc92c943aa0005fd4771b1460
-rw-r--r--uui/source/iahndl-locking.cxx5
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();
}