summaryrefslogtreecommitdiff
path: root/chart2/source/tools
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2014-05-06 21:31:29 +0200
committerJulien Nabet <serval2412@yahoo.fr>2014-05-06 21:33:28 +0200
commitf69e74d1a0fcd5ec6c38dc8a33e9562486aef1b6 (patch)
tree5b22522d60b2442652c946a8c0993320ed6c39b7 /chart2/source/tools
parent7aa32a759fb7b440f870739f7bb680f405f338ce (diff)
Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part2 + fix some errors
Change-Id: I9c889d718a9c91eb4c2bde2389a21dd754cbef36
Diffstat (limited to 'chart2/source/tools')
-rw-r--r--chart2/source/tools/ObjectIdentifier.cxx2
-rw-r--r--chart2/source/tools/RangeHighlighter.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/chart2/source/tools/ObjectIdentifier.cxx b/chart2/source/tools/ObjectIdentifier.cxx
index 9edbdf041abd..ef399da99c46 100644
--- a/chart2/source/tools/ObjectIdentifier.cxx
+++ b/chart2/source/tools/ObjectIdentifier.cxx
@@ -263,7 +263,7 @@ ObjectIdentifier::ObjectIdentifier( const Any& rAny )
{
rAny >>= m_aObjectCID;
}
- else if ( rType == cppu::UnoType< drawing::XShape >::get() )
+ else if ( rType == cppu::UnoType< Reference< drawing::XShape > >::get() )
{
rAny >>= m_xAdditionalShape;
}
diff --git a/chart2/source/tools/RangeHighlighter.cxx b/chart2/source/tools/RangeHighlighter.cxx
index cc7e431c0b47..f9525a286f00 100644
--- a/chart2/source/tools/RangeHighlighter.cxx
+++ b/chart2/source/tools/RangeHighlighter.cxx
@@ -164,7 +164,7 @@ void RangeHighlighter::determineRanges()
}
}
}
- else if ( rType == cppu::UnoType< drawing::XShape >::get() )
+ else if ( rType == cppu::UnoType< Reference < drawing::XShape > >::get() )
{
// #i12587# support for shapes in chart
Reference< drawing::XShape > xShape;
@@ -336,7 +336,7 @@ void SAL_CALL RangeHighlighter::selectionChanged( const lang::EventObject& /*aEv
void RangeHighlighter::fireSelectionEvent()
{
::cppu::OInterfaceContainerHelper* pIC = rBHelper.getContainer(
- cppu::UnoType< view::XSelectionChangeListener >::get() );
+ cppu::UnoType< Reference < view::XSelectionChangeListener > >::get() );
if( pIC )
{
lang::EventObject aEvent( static_cast< lang::XComponent* >( this ) );