summaryrefslogtreecommitdiff
path: root/uui
diff options
context:
space:
mode:
Diffstat (limited to 'uui')
-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();
}