diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-05-08 12:51:16 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-05-08 12:51:36 +0100 |
commit | f0bed251563113311d73312f0126bcf8852f888e (patch) | |
tree | 56c37b9520fc6939b1cde15e0cdd68dcaa6a9ffc /uui | |
parent | fdb363b43f515827a6b98877ea28a7ed0958ca69 (diff) |
VclPtr: presumably these also leak
Change-Id: Ib92a1d91464bc95a80415e1651bac78a65a8b31d
Diffstat (limited to 'uui')
-rw-r--r-- | uui/source/iahndl-locking.cxx | 6 |
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 ) |