summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <stephan.bergmann@allotropia.de>2024-09-23 22:25:44 +0200
committerStephan Bergmann <stephan.bergmann@allotropia.de>2024-09-24 07:55:00 +0200
commita446bfd0f379a2a976cf707c85a5f3c8ed68de0c (patch)
treee335eca2f174663bbddc26e5684cd7a4146efb4b
parentd7a608cc25f81c7c5de0edacf91b36cde2803410 (diff)
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>
-rw-r--r--unotest/source/cpp/unoexceptionprotector/unoexceptionprotector.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/unotest/source/cpp/unoexceptionprotector/unoexceptionprotector.cxx b/unotest/source/cpp/unoexceptionprotector/unoexceptionprotector.cxx
index 19b84b8cbfb1..6811c9470104 100644
--- a/unotest/source/cpp/unoexceptionprotector/unoexceptionprotector.cxx
+++ b/unotest/source/cpp/unoexceptionprotector/unoexceptionprotector.cxx
@@ -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: