From 7d1b01070c330d45212cd69ea692b2263c23c2a6 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 2 Jun 2016 14:53:50 +0200 Subject: remove some manual ref counting in svx and xmloff Change-Id: Ica0b6ff8ff7fa9e65cd758160d6e3ea7110ebb46 Reviewed-on: https://gerrit.libreoffice.org/25824 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svx/source/form/formcontrolling.cxx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'svx/source/form/formcontrolling.cxx') diff --git a/svx/source/form/formcontrolling.cxx b/svx/source/form/formcontrolling.cxx index 8255ccc5dfd3..06172a19821e 100644 --- a/svx/source/form/formcontrolling.cxx +++ b/svx/source/form/formcontrolling.cxx @@ -190,14 +190,12 @@ namespace svx ControllerFeatures::ControllerFeatures( IControllerFeatureInvalidation* _pInvalidationCallback ) :m_pInvalidationCallback( _pInvalidationCallback ) - ,m_pImpl( nullptr ) { } ControllerFeatures::ControllerFeatures( const Reference< XFormController >& _rxController, IControllerFeatureInvalidation* _pInvalidationCallback ) :m_pInvalidationCallback( _pInvalidationCallback ) - ,m_pImpl( nullptr ) { assign( _rxController ); } @@ -207,7 +205,6 @@ namespace svx { dispose(); m_pImpl = new FormControllerHelper( _rxController, m_pInvalidationCallback ); - m_pImpl->acquire(); } @@ -219,11 +216,10 @@ namespace svx void ControllerFeatures::dispose() { - if ( m_pImpl ) + if ( m_pImpl.is() ) { m_pImpl->dispose(); - m_pImpl->release(); - m_pImpl = nullptr; + m_pImpl.clear(); } } -- cgit