From 57796f2724f004679f78eb144a93b9a03968317c Mon Sep 17 00:00:00 2001
From: Julien Nabet <serval2412@yahoo.fr>
Date: Fri, 11 Jun 2021 14:52:29 +0200
Subject: Simplify Sequences initializations (writerfilter/writerperfect/x*)

Change-Id: I1bd31fe6cf0f8aaf4f2cfe1d3d49e61a0633f361
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117057
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
---
 xmlhelp/source/cxxhelp/provider/resultsetbase.cxx | 15 +++++----------
 1 file changed, 5 insertions(+), 10 deletions(-)

(limited to 'xmlhelp/source')

diff --git a/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx b/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx
index 90c928bbc789..ddb982985c65 100644
--- a/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx
+++ b/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx
@@ -392,16 +392,11 @@ private:
 uno::Reference< beans::XPropertySetInfo > SAL_CALL
 ResultSetBase::getPropertySetInfo()
 {
-    uno::Sequence< beans::Property > seq(2);
-    seq[0].Name = "RowCount";
-    seq[0].Handle = -1;
-    seq[0].Type = cppu::UnoType<sal_Int32>::get();
-    seq[0].Attributes = beans::PropertyAttribute::READONLY;
-
-    seq[1].Name = "IsRowCountFinal";
-    seq[1].Handle = -1;
-    seq[1].Type = cppu::UnoType<sal_Bool>::get();
-    seq[1].Attributes = beans::PropertyAttribute::READONLY;
+    uno::Sequence< beans::Property > seq
+    {
+        { "RowCount", -1, cppu::UnoType<sal_Int32>::get(), beans::PropertyAttribute::READONLY },
+        { "IsRowCountFinal", -1, cppu::UnoType<sal_Bool>::get(), beans::PropertyAttribute::READONLY }
+    };
 
     //t
     return uno::Reference< beans::XPropertySetInfo > ( new XPropertySetInfoImpl( seq ) );
-- 
cgit