diff options
author | Stephan Bergmann <stephan.bergmann@allotropia.de> | 2024-05-08 13:23:30 +0200 |
---|---|---|
committer | Stephan Bergmann <stephan.bergmann@allotropia.de> | 2024-05-09 14:00:33 +0200 |
commit | e49fd672b17ba382d78a130648e714fa130d39c5 (patch) | |
tree | f53eacdf3520c0fb9ba9eca820644b2b77e54048 /bridges | |
parent | 11c66ea0f49417a30aae1ff250f7f18ec797753e (diff) |
Fix typelib_TypeDescriptionReference -> typelib_TypeDescription conversion
Change-Id: Idfe74f1523ec866ed9926d3385a1605ad8a5547e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167352
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Diffstat (limited to 'bridges')
-rw-r--r-- | bridges/source/cpp_uno/gcc3_wasm/uno2cpp.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/bridges/source/cpp_uno/gcc3_wasm/uno2cpp.cxx b/bridges/source/cpp_uno/gcc3_wasm/uno2cpp.cxx index a0fdd15e05e6..788d8b2ba99a 100644 --- a/bridges/source/cpp_uno/gcc3_wasm/uno2cpp.cxx +++ b/bridges/source/cpp_uno/gcc3_wasm/uno2cpp.cxx @@ -12,11 +12,11 @@ #include <vector> #include <com/sun/star/uno/RuntimeException.hpp> -#include <com/sun/star/uno/Type.hxx> #include <o3tl/unreachable.hxx> #include <rtl/strbuf.hxx> #include <typelib/typeclass.h> #include <typelib/typedescription.h> +#include <typelib/typedescription.hxx> #include <bridge.hxx> #include <types.hxx> @@ -123,9 +123,8 @@ void call(bridges::cpp_uno::shared::UnoInterfaceProxy* proxy, break; case typelib_TypeClass_STRUCT: { - typelib_TypeDescription* td = nullptr; - css::uno::Type(returnType).getDescription(&td); - switch (getKind(reinterpret_cast<typelib_CompoundTypeDescription const*>(td))) + css::uno::TypeDescription td(returnType); + switch (getKind(reinterpret_cast<typelib_CompoundTypeDescription const*>(td.get()))) { case StructKind::Empty: break; |