diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-04-01 12:48:44 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-04-01 12:48:44 +0200 |
commit | 2fc4a8c8113b1bf78258845ed06662a07996a6af (patch) | |
tree | db055018db2d6190438b451444f337215a76917f /cppu | |
parent | 7ea8046c741c8b7b608f26e312cc5f1056752c09 (diff) |
Add support for cppu::UnoType<void>
Change-Id: I88259ffaffc73979c240721d2db166c79d3085f1
Diffstat (limited to 'cppu')
-rw-r--r-- | cppu/qa/test_any.cxx | 2 | ||||
-rw-r--r-- | cppu/qa/test_unotype.cxx | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/cppu/qa/test_any.cxx b/cppu/qa/test_any.cxx index f90a95fb3cf1..3a0352b3c59f 100644 --- a/cppu/qa/test_any.cxx +++ b/cppu/qa/test_any.cxx @@ -225,7 +225,7 @@ public: void Test::testVoid() { css::uno::Any a; - CPPUNIT_ASSERT(a.getValueType() == cppu::UnoType<cppu::UnoVoidType>::get()); + CPPUNIT_ASSERT(a.getValueType() == cppu::UnoType<void>::get()); { bool b = true; CPPUNIT_ASSERT_MESSAGE("bool", !(a >>= b) && b); diff --git a/cppu/qa/test_unotype.cxx b/cppu/qa/test_unotype.cxx index 9ba079958971..053b155628f1 100644 --- a/cppu/qa/test_unotype.cxx +++ b/cppu/qa/test_unotype.cxx @@ -102,6 +102,7 @@ void Test::testUnoType() { CPPUNIT_ASSERT_EQUAL(+css::uno::TypeClass_VOID, +t.getTypeClass()); CPPUNIT_ASSERT_EQUAL( ::rtl::OUString("void"), t.getTypeName()); + CPPUNIT_ASSERT(cppu::UnoType<void>::get() == t); t = ::cppu::UnoType< bool >::get(); CPPUNIT_ASSERT_EQUAL(+css::uno::TypeClass_BOOLEAN, +t.getTypeClass()); CPPUNIT_ASSERT_EQUAL( |