summaryrefslogtreecommitdiff
path: root/svx/source/unodraw/XPropertyTable.cxx
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2014-05-20 23:29:28 +0200
committerJulien Nabet <serval2412@yahoo.fr>2014-05-20 23:29:53 +0200
commit227af32d8c6d5e3649c83fcdb274298bc7faa294 (patch)
tree8490a6c94094d1fbf5a190a911070c3142d3cca7 /svx/source/unodraw/XPropertyTable.cxx
parent0f836296ea3cdc10326ad54983b634168285b8e2 (diff)
Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part18
Change-Id: Ibf958dbfbf7cdbe6ad31d390138be8d4d468c225
Diffstat (limited to 'svx/source/unodraw/XPropertyTable.cxx')
-rw-r--r--svx/source/unodraw/XPropertyTable.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/svx/source/unodraw/XPropertyTable.cxx b/svx/source/unodraw/XPropertyTable.cxx
index 5d30c42b8a46..22c30fe41404 100644
--- a/svx/source/unodraw/XPropertyTable.cxx
+++ b/svx/source/unodraw/XPropertyTable.cxx
@@ -348,7 +348,7 @@ uno::Any SvxUnoXLineEndTable::getAny( const XPropertyEntry* pEntry ) const throw
XPropertyEntry* SvxUnoXLineEndTable::getEntry( const OUString& rName, const uno::Any& rAny ) const throw()
{
- if( !rAny.getValue() || rAny.getValueType() != ::getCppuType((const drawing::PolyPolygonBezierCoords*)0) )
+ if( !rAny.getValue() || rAny.getValueType() != cppu::UnoType<drawing::PolyPolygonBezierCoords>::get())
return NULL;
basegfx::B2DPolyPolygon aPolyPolygon;
@@ -366,7 +366,7 @@ XPropertyEntry* SvxUnoXLineEndTable::getEntry( const OUString& rName, const uno:
uno::Type SAL_CALL SvxUnoXLineEndTable::getElementType()
throw( uno::RuntimeException, std::exception )
{
- return ::getCppuType((const drawing::PolyPolygonBezierCoords*)0);
+ return cppu::UnoType<drawing::PolyPolygonBezierCoords>::get();
}
// XServiceInfo
@@ -447,7 +447,7 @@ XPropertyEntry* SvxUnoXDashTable::getEntry( const OUString& rName, const uno::An
uno::Type SAL_CALL SvxUnoXDashTable::getElementType()
throw( uno::RuntimeException, std::exception )
{
- return ::getCppuType((const drawing::LineDash*)0);
+ return cppu::UnoType<drawing::LineDash>::get();
}
// XServiceInfo
@@ -523,7 +523,7 @@ XPropertyEntry* SvxUnoXHatchTable::getEntry( const OUString& rName, const uno::A
uno::Type SAL_CALL SvxUnoXHatchTable::getElementType()
throw( uno::RuntimeException, std::exception )
{
- return ::getCppuType((const drawing::Hatch*)0);
+ return cppu::UnoType<drawing::Hatch>::get();
}
// XServiceInfo
@@ -611,7 +611,7 @@ XPropertyEntry* SvxUnoXGradientTable::getEntry( const OUString& rName, const uno
uno::Type SAL_CALL SvxUnoXGradientTable::getElementType()
throw( uno::RuntimeException, std::exception )
{
- return ::getCppuType((const awt::Gradient*)0);
+ return cppu::UnoType<awt::Gradient>::get();
}
// XServiceInfo