summaryrefslogtreecommitdiff
path: root/include/cppu
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-04-01 12:48:44 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-04-01 12:48:44 +0200
commit2fc4a8c8113b1bf78258845ed06662a07996a6af (patch)
treedb055018db2d6190438b451444f337215a76917f /include/cppu
parent7ea8046c741c8b7b608f26e312cc5f1056752c09 (diff)
Add support for cppu::UnoType<void>
Change-Id: I88259ffaffc73979c240721d2db166c79d3085f1
Diffstat (limited to 'include/cppu')
-rw-r--r--include/cppu/unotype.hxx6
1 files changed, 5 insertions, 1 deletions
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<void>::get() {
+ return cppu::UnoType<cppu::UnoVoidType>::get();
+}
+
/**
A working replacement for getCppuType (see there).