diff options
author | Xisco Fauli <anistenis@gmail.com> | 2016-06-05 00:28:22 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-06-06 13:21:47 +0000 |
commit | f6d6a9c26448996498ec2a19c9ec64e6056a82f8 (patch) | |
tree | fb68062f9875bd530fba6beda674be1859351e36 /sfx2 | |
parent | 77a64e38637de0332f9f4ccf968bdd246f0b36eb (diff) |
tdf#89329: use rtl::Reference for pImpl in querystatus
Change-Id: Iebc26867ebca7b61c0c54eb36bef035f4c9fc28a
Reviewed-on: https://gerrit.libreoffice.org/25909
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/control/querystatus.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sfx2/source/control/querystatus.cxx b/sfx2/source/control/querystatus.cxx index 2f939a7ea4ce..2fd76fdac580 100644 --- a/sfx2/source/control/querystatus.cxx +++ b/sfx2/source/control/querystatus.cxx @@ -205,10 +205,8 @@ SfxItemState SfxQueryStatus_Impl::QueryState( SfxPoolItem*& rpPoolItem ) SfxQueryStatus::SfxQueryStatus( const Reference< XDispatchProvider >& rDispatchProvider, sal_uInt16 nSlotId, const OUString& rCommand ) + : m_pImpl(new SfxQueryStatus_Impl( rDispatchProvider, nSlotId, rCommand )) { - m_pSfxQueryStatusImpl = new SfxQueryStatus_Impl( rDispatchProvider, nSlotId, rCommand ); - m_xStatusListener.set( static_cast< cppu::OWeakObject* >( m_pSfxQueryStatusImpl ), - UNO_QUERY ); } SfxQueryStatus::~SfxQueryStatus() @@ -218,7 +216,7 @@ SfxQueryStatus::~SfxQueryStatus() SfxItemState SfxQueryStatus::QueryState( SfxPoolItem*& rpPoolItem ) { SolarMutexGuard aGuard; - return m_pSfxQueryStatusImpl->QueryState( rpPoolItem ); + return m_pImpl->QueryState( rpPoolItem ); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |