diff options
author | Xisco Fauli <anistenis@gmail.com> | 2016-06-01 01:20:00 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-06-01 09:58:17 +0000 |
commit | 619a41940f0a3be91c8419a571943217183ced18 (patch) | |
tree | 79bae8dc9f63fb98d4a6fbed001e64f733253c5b /comphelper | |
parent | e0f9d3c5bc448868732e8e21568a596340512ce3 (diff) |
tdf#89329: use unique_ptr for pImpl in accessiblecontexthelper
Change-Id: Ib78ee2f1faa4f9430e08bfbd0cfb0863da7d6dcb
Reviewed-on: https://gerrit.libreoffice.org/25744
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/source/misc/accessiblecontexthelper.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/comphelper/source/misc/accessiblecontexthelper.cxx b/comphelper/source/misc/accessiblecontexthelper.cxx index 7ff1bcb5d564..02b7b9e951db 100644 --- a/comphelper/source/misc/accessiblecontexthelper.cxx +++ b/comphelper/source/misc/accessiblecontexthelper.cxx @@ -74,10 +74,9 @@ namespace comphelper OAccessibleContextHelper::OAccessibleContextHelper( IMutex* _pExternalLock ) :OAccessibleContextHelper_Base( GetMutex() ) - ,m_pImpl( nullptr ) + ,m_pImpl(new OContextHelper_Impl) { assert(_pExternalLock); - m_pImpl = new OContextHelper_Impl(); m_pImpl->setExternalLock( _pExternalLock ); } @@ -95,9 +94,6 @@ namespace comphelper // is not used anymore ensureDisposed(); - - delete m_pImpl; - m_pImpl = nullptr; } |