summaryrefslogtreecommitdiff
path: root/sc/source/ui/unoobj/fmtuno.cxx
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2014-05-17 00:23:39 +0200
committerJulien Nabet <serval2412@yahoo.fr>2014-05-17 00:24:22 +0200
commitdd33f91581aaca03a83a70d94195338516742fa2 (patch)
treef5ca034e1a928d43cbc00d637bdf3c256dffea7d /sc/source/ui/unoobj/fmtuno.cxx
parent8ae06100856964d849e8c6ecbc85cbb44bcf0414 (diff)
Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part14
Change-Id: Ibccaa2138426c22cd63d273a1b6cdc927ebe80dc
Diffstat (limited to 'sc/source/ui/unoobj/fmtuno.cxx')
-rw-r--r--sc/source/ui/unoobj/fmtuno.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/unoobj/fmtuno.cxx b/sc/source/ui/unoobj/fmtuno.cxx
index cb523063412f..2ffacb4c7888 100644
--- a/sc/source/ui/unoobj/fmtuno.cxx
+++ b/sc/source/ui/unoobj/fmtuno.cxx
@@ -46,7 +46,7 @@ static const SfxItemPropertyMapEntry* lcl_GetValidatePropertyMap()
{
static const SfxItemPropertyMapEntry aValidatePropertyMap_Impl[] =
{
- {OUString(SC_UNONAME_ERRALSTY), 0, getCppuType((sheet::ValidationAlertStyle*)0), 0, 0},
+ {OUString(SC_UNONAME_ERRALSTY), 0, cppu::UnoType<sheet::ValidationAlertStyle>::get(), 0, 0},
{OUString(SC_UNONAME_ERRMESS), 0, cppu::UnoType<OUString>::get(), 0, 0},
{OUString(SC_UNONAME_ERRTITLE), 0, cppu::UnoType<OUString>::get(), 0, 0},
{OUString(SC_UNONAME_IGNOREBL), 0, getBooleanCppuType(), 0, 0},
@@ -55,7 +55,7 @@ static const SfxItemPropertyMapEntry* lcl_GetValidatePropertyMap()
{OUString(SC_UNONAME_SHOWERR), 0, getBooleanCppuType(), 0, 0},
{OUString(SC_UNONAME_SHOWINP), 0, getBooleanCppuType(), 0, 0},
{OUString(SC_UNONAME_SHOWLIST), 0, cppu::UnoType<sal_Int16>::get(), 0, 0},
- {OUString(SC_UNONAME_TYPE), 0, getCppuType((sheet::ValidationType*)0), 0, 0},
+ {OUString(SC_UNONAME_TYPE), 0, cppu::UnoType<sheet::ValidationType>::get(), 0, 0},
{ OUString(), 0, css::uno::Type(), 0, 0 }
};
return aValidatePropertyMap_Impl;
@@ -400,7 +400,7 @@ uno::Any SAL_CALL ScTableConditionalFormat::getByIndex( sal_Int32 nIndex )
uno::Type SAL_CALL ScTableConditionalFormat::getElementType() throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
- return getCppuType((uno::Reference<sheet::XSheetConditionalEntry>*)0);
+ return cppu::UnoType<sheet::XSheetConditionalEntry>::get();
}
sal_Bool SAL_CALL ScTableConditionalFormat::hasElements() throw(uno::RuntimeException, std::exception)