summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2023-04-26 21:26:53 +0200
committerJulien Nabet <serval2412@yahoo.fr>2023-04-26 22:18:14 +0200
commit2930179b0c0bbb42a66fcf7628060bda74e6c6c8 (patch)
tree55e6592207ca3ebb53aecbc7a338dbe0fe338b2d
parentUpdate git submodules (diff)
downloadcore-2930179b0c0bbb42a66fcf7628060bda74e6c6c8.tar.gz
core-2930179b0c0bbb42a66fcf7628060bda74e6c6c8.zip
Simplify aCurNode.children construction in sw/WriterInspectorTextPanel.cxx
Change-Id: Ide294aadc8a0c0df1fa6ba24bae044a2592677f3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151075 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
-rw-r--r--sw/source/uibase/sidebar/WriterInspectorTextPanel.cxx19
1 files changed, 7 insertions, 12 deletions
diff --git a/sw/source/uibase/sidebar/WriterInspectorTextPanel.cxx b/sw/source/uibase/sidebar/WriterInspectorTextPanel.cxx
index 71b0ad24fc58..63b952f0fa86 100644
--- a/sw/source/uibase/sidebar/WriterInspectorTextPanel.cxx
+++ b/sw/source/uibase/sidebar/WriterInspectorTextPanel.cxx
@@ -359,18 +359,13 @@ static svx::sidebar::TreeNode BorderToTreeNode(const OUString& rName, const css:
aCurNode.sNodeName = PropertyNametoRID(rName);
aCurNode.NodeType = svx::sidebar::TreeNode::ComplexProperty;
- aCurNode.children.push_back(SimplePropToTreeNode("BorderColor", css::uno::Any(aBorder.Color)));
- aCurNode.children.push_back(
- SimplePropToTreeNode("BorderLineWidth", css::uno::Any(aBorder.LineWidth)));
- aCurNode.children.push_back(
- SimplePropToTreeNode("BorderLineStyle", css::uno::Any(aBorder.LineStyle)));
- aCurNode.children.push_back(
- SimplePropToTreeNode("BorderLineDistance", css::uno::Any(aBorder.LineDistance)));
- aCurNode.children.push_back(
- SimplePropToTreeNode("BorderInnerLineWidth", css::uno::Any(aBorder.InnerLineWidth)));
- aCurNode.children.push_back(
- SimplePropToTreeNode("BorderOuterLineWidth", css::uno::Any(aBorder.OuterLineWidth)));
-
+ aCurNode.children
+ = { SimplePropToTreeNode("BorderColor", css::uno::Any(aBorder.Color)),
+ SimplePropToTreeNode("BorderLineWidth", css::uno::Any(aBorder.LineWidth)),
+ SimplePropToTreeNode("BorderLineStyle", css::uno::Any(aBorder.LineStyle)),
+ SimplePropToTreeNode("BorderLineDistance", css::uno::Any(aBorder.LineDistance)),
+ SimplePropToTreeNode("BorderInnerLineWidth", css::uno::Any(aBorder.InnerLineWidth)),
+ SimplePropToTreeNode("BorderOuterLineWidth", css::uno::Any(aBorder.OuterLineWidth)) };
return aCurNode;
}