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/nameuno.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sc/source/ui/unoobj/nameuno.cxx') diff --git a/sc/source/ui/unoobj/nameuno.cxx b/sc/source/ui/unoobj/nameuno.cxx index f062f42b9768..14bcecac00d4 100644 --- a/sc/source/ui/unoobj/nameuno.cxx +++ b/sc/source/ui/unoobj/nameuno.cxx @@ -50,7 +50,7 @@ static const SfxItemPropertyMapEntry* lcl_GetNamedRangeMap() { static const SfxItemPropertyMapEntry aNamedRangeMap_Impl[] = { - {OUString(SC_UNO_LINKDISPBIT), 0, getCppuType((uno::Reference*)0), beans::PropertyAttribute::READONLY, 0 }, + {OUString(SC_UNO_LINKDISPBIT), 0, cppu::UnoType::get(), beans::PropertyAttribute::READONLY, 0 }, {OUString(SC_UNO_LINKDISPNAME), 0, cppu::UnoType::get(), beans::PropertyAttribute::READONLY, 0 }, {OUString(SC_UNONAME_TOKENINDEX), 0, cppu::UnoType::get(), beans::PropertyAttribute::READONLY, 0 }, {OUString(SC_UNONAME_ISSHAREDFMLA), 0, getBooleanCppuType(), 0, 0 }, @@ -642,7 +642,7 @@ uno::Any SAL_CALL ScNamedRangesObj::getByIndex( sal_Int32 nIndex ) uno::Type SAL_CALL ScNamedRangesObj::getElementType() throw(uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; - return ::getCppuType((const uno::Reference< sheet::XNamedRange >*)0); // must be suitable for getByIndex + return cppu::UnoType::get(); // must be suitable for getByIndex } sal_Bool SAL_CALL ScNamedRangesObj::hasElements() throw(uno::RuntimeException, std::exception) @@ -1204,7 +1204,7 @@ uno::Any SAL_CALL ScLabelRangesObj::getByIndex( sal_Int32 nIndex ) uno::Type SAL_CALL ScLabelRangesObj::getElementType() throw(uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; - return ::getCppuType((const uno::Reference< sheet::XLabelRange >*)0); // must be suitable for getByIndex + return cppu::UnoType::get(); // must be suitable for getByIndex } -- cgit