summaryrefslogtreecommitdiff
path: root/uui/source/iahndl-locking.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-04-10 16:13:34 +0200
committerNoel Grandin <noel@peralex.com>2015-04-10 16:13:34 +0200
commit7a1fad0d4f6b95c9beafa9c34f34b70bb9a0c9ed (patch)
tree10280a4d4cde82967bba69ee1fe0f4a9db71bc9c /uui/source/iahndl-locking.cxx
parent3bf4ada33f09e155f3350602e7a4b6cec77e40f0 (diff)
convert ScopedVclPtr to ScopedVclPtrInstance
Change-Id: I22a9d9c313a81ccee885b9c8785d4b008a6f2058
Diffstat (limited to 'uui/source/iahndl-locking.cxx')
-rw-r--r--uui/source/iahndl-locking.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/uui/source/iahndl-locking.cxx b/uui/source/iahndl-locking.cxx
index ad9ddb700142..aac4cd87c960 100644
--- a/uui/source/iahndl-locking.cxx
+++ b/uui/source/iahndl-locking.cxx
@@ -93,8 +93,7 @@ handleLockedDocumentRequest_(
aMessage = UUIInteractionHelper::replaceMessageWithArguments(
aMessage, aArguments );
- ScopedVclPtr< OpenLockedQueryBox > xDialog(new OpenLockedQueryBox(
- pParent, xManager.get(), aMessage ) );
+ ScopedVclPtrInstance< OpenLockedQueryBox > xDialog(pParent, xManager.get(), aMessage);
nResult = xDialog->Execute();
}
else if ( nMode == UUI_DOC_SAVE_LOCK )
@@ -107,8 +106,7 @@ handleLockedDocumentRequest_(
aMessage = UUIInteractionHelper::replaceMessageWithArguments(
aMessage, aArguments );
- ScopedVclPtr< TryLaterQueryBox > xDialog(
- new TryLaterQueryBox( pParent, xManager.get(), aMessage ) );
+ ScopedVclPtrInstance< TryLaterQueryBox > xDialog( pParent, xManager.get(), aMessage );
nResult = xDialog->Execute();
}
else if ( nMode == UUI_DOC_OWN_LOAD_LOCK ||