summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2024-04-22 08:58:32 +0200
committerMike Kaganski <mike.kaganski@collabora.com>2024-04-22 10:02:50 +0200
commite902fe1b8bf03f9c3747685314f4d443bcea9333 (patch)
tree011e6c4b7bdf6c9e1dbc5aaa9b1c3643a37076aa /xmloff
parentc0f44787c0bcbd28ac61dab66483f025578f095c (diff)
Use designated initializers for clarity
Change-Id: Ie10e657e07981e6fd0f0804371fd30f2b3f143b1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166430 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/text/txtparae.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/xmloff/source/text/txtparae.cxx b/xmloff/source/text/txtparae.cxx
index c95eb4886120..6153fb09d7a8 100644
--- a/xmloff/source/text/txtparae.cxx
+++ b/xmloff/source/text/txtparae.cxx
@@ -1358,8 +1358,9 @@ struct XMLTextParagraphExport::DocumentListNodes
for (const auto& node : nodes)
{
assert(node.getLength() == 3);
- docListNodes.push_back({ node[0].get<sal_Int32>(), node[1].get<sal_uInt64>(),
- node[2].get<OUString>() });
+ docListNodes.push_back({ .index = node[0].get<sal_Int32>(),
+ .style_id = node[1].get<sal_uInt64>(),
+ .list_id = node[2].get<OUString>() });
}
std::sort(docListNodes.begin(), docListNodes.end(),