summaryrefslogtreecommitdiff
path: root/cppuhelper/qa
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2014-05-11 10:09:04 +0200
committerJulien Nabet <serval2412@yahoo.fr>2014-05-11 10:16:42 +0200
commitbd596286207adf06936939a3ef8018efc1055591 (patch)
treedc8e079155868ffbc5d023f04620c83f402dc6c2 /cppuhelper/qa
parentbe44f0e91b6061f6bbe6b4da2f264eed70fb6542 (diff)
Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part10
Change-Id: I67acda35fa127547dcea0cd18c9dc16db7c00294
Diffstat (limited to 'cppuhelper/qa')
-rw-r--r--cppuhelper/qa/propertysetmixin/test_propertysetmixin.cxx6
1 files changed, 3 insertions, 3 deletions
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<sal_Int32>::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<sal_Int32>::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<sal_Int32>::get(), prop.Type);
CPPUNIT_ASSERT_EQUAL(
static_cast< sal_Int16 >(css::beans::PropertyAttribute::OPTIONAL),
prop.Attributes);