summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-12-11 15:36:28 +0100
committerStephan Bergmann <sbergman@redhat.com>2013-12-12 08:26:49 +0100
commitde68d46d745f67e1f4e9e10dcbf1b534ec7aea39 (patch)
tree5c3f0f6845d5c64d100929367da3b3bb10d7da6e /svx
parent121be3b60ac5f1b4592784b2818a32889d6e9bd1 (diff)
Remove unnecessary macro ITYPE
Change-Id: I9ade981c771367fd292600d73124f89b94a7a924
Diffstat (limited to 'svx')
-rw-r--r--svx/source/unodraw/unomod.cxx13
1 files changed, 5 insertions, 8 deletions
diff --git a/svx/source/unodraw/unomod.cxx b/svx/source/unodraw/unomod.cxx
index 0bf65e5b4ff3..cc62ba4a0d0f 100644
--- a/svx/source/unodraw/unomod.cxx
+++ b/svx/source/unodraw/unomod.cxx
@@ -65,9 +65,6 @@ using namespace ::com::sun::star;
if( rType == ::getCppuType((const uno::Reference< xint >*)0) ) \
aAny <<= uno::Reference< xint >(this)
-#define ITYPE( xint ) \
- ::getCppuType((const uno::Reference< xint >*)0)
-
//-////////////////////////////////////////////////////////////////////
class SvxUnoDrawPagesAccess : public ::cppu::WeakImplHelper2< ::com::sun::star::drawing::XDrawPages, ::com::sun::star::lang::XServiceInfo >
@@ -303,10 +300,10 @@ uno::Sequence< uno::Type > SAL_CALL SvxUnoDrawingModel::getTypes( ) throw(uno::
maTypeSequence.realloc( nBaseTypes + nOwnTypes );
uno::Type* pTypes = maTypeSequence.getArray();
- *pTypes++ = ITYPE(lang::XServiceInfo);
- *pTypes++ = ITYPE(lang::XMultiServiceFactory);
- *pTypes++ = ITYPE(drawing::XDrawPagesSupplier);
- *pTypes++ = ITYPE(com::sun::star::ucb::XAnyCompareFactory);
+ *pTypes++ = cppu::UnoType<lang::XServiceInfo>::get();
+ *pTypes++ = cppu::UnoType<lang::XMultiServiceFactory>::get();
+ *pTypes++ = cppu::UnoType<drawing::XDrawPagesSupplier>::get();
+ *pTypes++ = cppu::UnoType<com::sun::star::ucb::XAnyCompareFactory>::get();
for( sal_Int32 nType = 0; nType < nBaseTypes; nType++ )
*pTypes++ = *pBaseTypes++;
@@ -653,7 +650,7 @@ uno::Any SAL_CALL SvxUnoDrawPagesAccess::getByIndex( sal_Int32 Index )
uno::Type SAL_CALL SvxUnoDrawPagesAccess::getElementType()
throw(uno::RuntimeException)
{
- return ITYPE( drawing::XDrawPage );
+ return cppu::UnoType<drawing::XDrawPage>::get();
}
sal_Bool SAL_CALL SvxUnoDrawPagesAccess::hasElements()