bridges/source/cpp_uno/gcc3_wasm/uno2cpp.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
New commits: commit e49fd672b17ba382d78a130648e714fa130d39c5 Author: Stephan Bergmann <stephan.bergm...@allotropia.de> AuthorDate: Wed May 8 13:23:30 2024 +0200 Commit: Stephan Bergmann <stephan.bergm...@allotropia.de> CommitDate: Thu May 9 14:00:33 2024 +0200 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.bergm...@allotropia.de> 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;