summaryrefslogtreecommitdiff
path: root/uui/source/iahndl-locking.cxx
diff options
context:
space:
mode:
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 cd55c388b13f..db43be750488 100644
--- a/uui/source/iahndl-locking.cxx
+++ b/uui/source/iahndl-locking.cxx
@@ -160,8 +160,7 @@ handleChangedByOthersRequest_(
if (!xManager.get())
return;
- VclPtr< FileChangedQueryBox > xDialog(
- VclPtr<FileChangedQueryBox>::Create( pParent, xManager.get() ) );
+ ScopedVclPtrInstance< FileChangedQueryBox > xDialog(pParent, xManager.get());
sal_Int32 nResult = xDialog->Execute();
if ( nResult == RET_YES )
@@ -195,8 +194,7 @@ handleLockFileIgnoreRequest_(
if (!xManager.get())
return;
- VclPtr< LockFailedQueryBox > xDialog(
- VclPtr<LockFailedQueryBox>::Create( pParent, xManager.get() ) );
+ ScopedVclPtrInstance< LockFailedQueryBox > xDialog(pParent, xManager.get());
sal_Int32 nResult = xDialog->Execute();
if ( nResult == RET_OK )