From bd596286207adf06936939a3ef8018efc1055591 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sun, 11 May 2014 10:09:04 +0200 Subject: Prefer cppu::UnoType::get() to ::getCppuType((T*)0) part10 Change-Id: I67acda35fa127547dcea0cd18c9dc16db7c00294 --- cppuhelper/qa/propertysetmixin/test_propertysetmixin.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cppuhelper/qa') diff --git a/cppuhelper/qa/propertysetmixin/test_propertysetmixin.cxx b/cppuhelper/qa/propertysetmixin/test_propertysetmixin.cxx index 9455752824d0..88f843acf061 100644 --- a/cppuhelper/qa/propertysetmixin/test_propertysetmixin.cxx +++ b/cppuhelper/qa/propertysetmixin/test_propertysetmixin.cxx @@ -376,14 +376,14 @@ void Test::testFull( CPPUNIT_ASSERT_EQUAL( rtl::OUString("First"), prop.Name); CPPUNIT_ASSERT_EQUAL(static_cast< sal_Int32 >(0), prop.Handle); - CPPUNIT_ASSERT_EQUAL(getCppuType(static_cast< sal_Int32 * >(0)), prop.Type); + CPPUNIT_ASSERT_EQUAL(cppu::UnoType::get(), prop.Type); CPPUNIT_ASSERT_EQUAL(static_cast< sal_Int16 >(0), prop.Attributes); prop = info->getPropertyByName( rtl::OUString("Second")); CPPUNIT_ASSERT_EQUAL( rtl::OUString("Second"), prop.Name); CPPUNIT_ASSERT_EQUAL(static_cast< sal_Int32 >(1), prop.Handle); - CPPUNIT_ASSERT_EQUAL(getCppuType(static_cast< sal_Int32 * >(0)), prop.Type); + CPPUNIT_ASSERT_EQUAL(cppu::UnoType::get(), prop.Type); CPPUNIT_ASSERT_EQUAL( static_cast< sal_Int16 >( css::beans::PropertyAttribute::MAYBEVOID @@ -403,7 +403,7 @@ void Test::testFull( CPPUNIT_ASSERT_EQUAL( rtl::OUString("Fourth"), prop.Name); CPPUNIT_ASSERT_EQUAL(static_cast< sal_Int32 >(3), prop.Handle); - CPPUNIT_ASSERT_EQUAL(getCppuType(static_cast< sal_Int32 * >(0)), prop.Type); + CPPUNIT_ASSERT_EQUAL(cppu::UnoType::get(), prop.Type); CPPUNIT_ASSERT_EQUAL( static_cast< sal_Int16 >(css::beans::PropertyAttribute::OPTIONAL), prop.Attributes); -- cgit