From dd33f91581aaca03a83a70d94195338516742fa2 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sat, 17 May 2014 00:23:39 +0200 Subject: Prefer cppu::UnoType::get() to ::getCppuType((T*)0) part14 Change-Id: Ibccaa2138426c22cd63d273a1b6cdc927ebe80dc --- sc/source/ui/unoobj/fmtuno.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sc/source/ui/unoobj/fmtuno.cxx') 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::get(), 0, 0}, {OUString(SC_UNONAME_ERRMESS), 0, cppu::UnoType::get(), 0, 0}, {OUString(SC_UNONAME_ERRTITLE), 0, cppu::UnoType::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::get(), 0, 0}, - {OUString(SC_UNONAME_TYPE), 0, getCppuType((sheet::ValidationType*)0), 0, 0}, + {OUString(SC_UNONAME_TYPE), 0, cppu::UnoType::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*)0); + return cppu::UnoType::get(); } sal_Bool SAL_CALL ScTableConditionalFormat::hasElements() throw(uno::RuntimeException, std::exception) -- cgit