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>
This commit is contained in:
Stephan Bergmann 2024-05-08 13:23:30 +02:00
parent 11c66ea0f4
commit e49fd672b1

View file

@ -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;