summaryrefslogtreecommitdiff
path: root/svx/source/form/formcontrolling.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-06-02 14:53:50 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-06-06 07:01:51 +0000
commit7d1b01070c330d45212cd69ea692b2263c23c2a6 (patch)
tree7ae6ecdd69cd3d8b6ce4431a39034186695497c0 /svx/source/form/formcontrolling.cxx
parent9f138ffe9da2f448a455f4b51facab82e5e243d7 (diff)
remove some manual ref counting in svx and xmloff
Change-Id: Ica0b6ff8ff7fa9e65cd758160d6e3ea7110ebb46 Reviewed-on: https://gerrit.libreoffice.org/25824 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svx/source/form/formcontrolling.cxx')
-rw-r--r--svx/source/form/formcontrolling.cxx8
1 files changed, 2 insertions, 6 deletions
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();
}
}