summaryrefslogtreecommitdiff
path: root/sfx2/source/control/querystatus.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/control/querystatus.cxx')
-rw-r--r--sfx2/source/control/querystatus.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sfx2/source/control/querystatus.cxx b/sfx2/source/control/querystatus.cxx
index 8c5127c5e158..6f86cfc9d1e9 100644
--- a/sfx2/source/control/querystatus.cxx
+++ b/sfx2/source/control/querystatus.cxx
@@ -208,9 +208,8 @@ SfxItemState SfxQueryStatus_Impl::QueryState( SfxPoolItem*& rpPoolItem )
SfxQueryStatus::SfxQueryStatus( const Reference< XDispatchProvider >& rDispatchProvider, sal_uInt16 nSlotId, const OUString& rCommand )
{
m_pSfxQueryStatusImpl = new SfxQueryStatus_Impl( rDispatchProvider, nSlotId, rCommand );
- m_xStatusListener = Reference< XStatusListener >(
- static_cast< cppu::OWeakObject* >( m_pSfxQueryStatusImpl ),
- UNO_QUERY );
+ m_xStatusListener.set( static_cast< cppu::OWeakObject* >( m_pSfxQueryStatusImpl ),
+ UNO_QUERY );
}
SfxQueryStatus::~SfxQueryStatus()