diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2014-05-06 22:51:07 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2014-05-06 22:51:42 +0200 |
commit | db3b1dd86ed467889d595e080b00fc957eb155ff (patch) | |
tree | 75a3d77e016aae6605e97d94f71a2d3918873b68 /chart2 | |
parent | 3ed4078ad2e1bb35829b118a5067ad3a43365bbc (diff) |
Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part3
Change-Id: Ibabd6d2d5e84fe007364bd1a4182a01ea2352b7a
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/controller/main/ChartController_Window.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/chart2/source/controller/main/ChartController_Window.cxx b/chart2/source/controller/main/ChartController_Window.cxx index 8437a57758aa..b9b84590683f 100644 --- a/chart2/source/controller/main/ChartController_Window.cxx +++ b/chart2/source/controller/main/ChartController_Window.cxx @@ -1627,7 +1627,7 @@ bool ChartController::requestQuickHelp( if ( rSelection.hasValue() ) { const uno::Type& rType = rSelection.getValueType(); - if ( rType == ::getCppuType( static_cast< const OUString* >( 0 ) ) ) + if ( rType == cppu::UnoType< OUString >::get() ) { OUString aNewCID; if ( ( rSelection >>= aNewCID ) && m_aSelection.setSelection( aNewCID ) ) @@ -1635,7 +1635,7 @@ bool ChartController::requestQuickHelp( bSuccess = true; } } - else if ( rType == ::getCppuType( static_cast< const uno::Reference< drawing::XShape >* >( 0 ) ) ) + else if ( rType == cppu::UnoType< uno::Reference< drawing::XShape > >::get() ) { uno::Reference< drawing::XShape > xShape; if ( ( rSelection >>= xShape ) && m_aSelection.setSelection( xShape ) ) @@ -1701,7 +1701,7 @@ bool ChartController::requestQuickHelp( return; //behave passive if already disposed or suspended //--add listener - m_aLifeTimeManager.m_aListenerContainer.addInterface( ::getCppuType((const uno::Reference< view::XSelectionChangeListener >*)0), xListener ); + m_aLifeTimeManager.m_aListenerContainer.addInterface( cppu::UnoType< uno::Reference< view::XSelectionChangeListener > >::get(), xListener ); } void SAL_CALL ChartController @@ -1714,14 +1714,14 @@ bool ChartController::requestQuickHelp( return; //behave passive if already disposed or suspended //--remove listener - m_aLifeTimeManager.m_aListenerContainer.removeInterface( ::getCppuType((const uno::Reference< view::XSelectionChangeListener >*)0), xListener ); + m_aLifeTimeManager.m_aListenerContainer.removeInterface( cppu::UnoType< uno::Reference< view::XSelectionChangeListener > >::get(), xListener ); } void ChartController ::impl_notifySelectionChangeListeners() { ::cppu::OInterfaceContainerHelper* pIC = m_aLifeTimeManager.m_aListenerContainer - .getContainer( ::getCppuType((const uno::Reference< view::XSelectionChangeListener >*)0) ); + .getContainer( cppu::UnoType< uno::Reference< view::XSelectionChangeListener > >::get() ); if( pIC ) { uno::Reference< view::XSelectionSupplier > xSelectionSupplier(this); |