summaryrefslogtreecommitdiff
path: root/xmlhelp
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2021-06-11 14:52:29 +0200
committerJulien Nabet <serval2412@yahoo.fr>2021-06-11 16:03:10 +0200
commit57796f2724f004679f78eb144a93b9a03968317c (patch)
tree7cbf29016260069d25e0c362711c4f6e6e7e083f /xmlhelp
parent92889bc98f4e822715874cb80346d8370e9da8e6 (diff)
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>
Diffstat (limited to 'xmlhelp')
-rw-r--r--xmlhelp/source/cxxhelp/provider/resultsetbase.cxx15
1 files changed, 5 insertions, 10 deletions
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 ) );