Surround printed struct/exception members with {...}

Change-Id: I41d661e5d89c784715e4e07a3c7f7f27737ba3e8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173831
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
This commit is contained in:
Stephan Bergmann
2024-09-23 22:25:44 +02:00
parent d7a608cc25
commit a446bfd0f3

View File

@@ -124,6 +124,7 @@ void printUnoValue(
case css::uno::TypeClass_STRUCT:
case css::uno::TypeClass_EXCEPTION:
{
out << '{';
auto first = true;
for (auto const & f: css::uno::Reference<css::reflection::XIdlClass>(
reflections->forName(type.getTypeName()),
@@ -137,6 +138,7 @@ void printUnoValue(
out << f->getName() << ": ";
printUnoValue(out, reflections, translateType(f->getType()), f->get(value));
}
out << '}';
break;
}
case css::uno::TypeClass_INTERFACE: