From 2fc4a8c8113b1bf78258845ed06662a07996a6af Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 1 Apr 2015 12:48:44 +0200 Subject: Add support for cppu::UnoType Change-Id: I88259ffaffc73979c240721d2db166c79d3085f1 --- include/cppu/unotype.hxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/cppu') diff --git a/include/cppu/unotype.hxx b/include/cppu/unotype.hxx index 4c7e5a758b79..4d6194f00212 100644 --- a/include/cppu/unotype.hxx +++ b/include/cppu/unotype.hxx @@ -257,7 +257,7 @@ namespace cppu { C++ types that are unambiguously derived from one C++ type that represents a UNO type.) In addition to those C++ types that are mappings of UNO types (except for sal_uInt16 and sal_Unicode, see below), the following C++ types - are appropriate as template arguments: cppu::UnoVoidType, bool, + are appropriate as template arguments: void, cppu::UnoVoidType, bool, cppu::UnoUnsignedShortType, cppu::UnoCharType, cppu::UnoSequenceType with any appropriate template argument (the latter three to unambiguously specify UNO types, as the UNO types UNSIGNED SHORT and CHAR map to the same C++ type), @@ -284,6 +284,10 @@ private: void operator =(UnoType &) SAL_DELETED_FUNCTION; }; +template<> css::uno::Type inline const & UnoType::get() { + return cppu::UnoType::get(); +} + /** A working replacement for getCppuType (see there). -- cgit