From a446bfd0f379a2a976cf707c85a5f3c8ed68de0c Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 23 Sep 2024 22:25:44 +0200 Subject: [PATCH] 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 --- .../source/cpp/unoexceptionprotector/unoexceptionprotector.cxx | 2 ++ 1 file changed, 2 insertions(+) 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( 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: