summaryrefslogtreecommitdiff
path: root/svx/source/unogallery/unogaltheme.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/unogallery/unogaltheme.cxx
parent0f836296ea3cdc10326ad54983b634168285b8e2 (diff)
Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part18
Change-Id: Ibf958dbfbf7cdbe6ad31d390138be8d4d468c225
Diffstat (limited to 'svx/source/unogallery/unogaltheme.cxx')
-rw-r--r--svx/source/unogallery/unogaltheme.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/svx/source/unogallery/unogaltheme.cxx b/svx/source/unogallery/unogaltheme.cxx
index 9e43d0d0cd93..aa28d12f7b41 100644
--- a/svx/source/unogallery/unogaltheme.cxx
+++ b/svx/source/unogallery/unogaltheme.cxx
@@ -114,11 +114,11 @@ uno::Sequence< uno::Type > SAL_CALL GalleryTheme::getTypes()
uno::Sequence< uno::Type > aTypes( 5 );
uno::Type* pTypes = aTypes.getArray();
- *pTypes++ = ::getCppuType((const uno::Reference< lang::XServiceInfo>*)0);
- *pTypes++ = ::getCppuType((const uno::Reference< lang::XTypeProvider>*)0);
- *pTypes++ = ::getCppuType((const uno::Reference< container::XElementAccess>*)0);
- *pTypes++ = ::getCppuType((const uno::Reference< container::XIndexAccess>*)0);
- *pTypes++ = ::getCppuType((const uno::Reference< gallery::XGalleryTheme>*)0);
+ *pTypes++ = cppu::UnoType<lang::XServiceInfo>::get();
+ *pTypes++ = cppu::UnoType<lang::XTypeProvider>::get();
+ *pTypes++ = cppu::UnoType<container::XElementAccess>::get();
+ *pTypes++ = cppu::UnoType<container::XIndexAccess>::get();
+ *pTypes++ = cppu::UnoType<gallery::XGalleryTheme>::get();
return aTypes;
}
@@ -134,7 +134,7 @@ uno::Sequence< sal_Int8 > SAL_CALL GalleryTheme::getImplementationId()
uno::Type SAL_CALL GalleryTheme::getElementType()
throw (uno::RuntimeException, std::exception)
{
- return ::getCppuType( (const uno::Reference< gallery::XGalleryItem >*) 0);
+ return cppu::UnoType<gallery::XGalleryItem>::get();
}