diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2021-06-09 17:28:19 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2021-06-11 14:54:14 +0200 |
commit | b1fe17f280b24e78e7ee55d4762dc64a98d6f302 (patch) | |
tree | 819aecb52d9c92a3cf6b640c52da8cfcf6a077fa /sc/qa/extras/scdatapilotfieldgroupsobj.cxx | |
parent | 51178765e8afe33ebbb2016219cff869d88ca07f (diff) |
Simplify Sequences initializations (sc)
Change-Id: I0c581b3a900a6b89c0f4e203310d65600545987f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116929
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sc/qa/extras/scdatapilotfieldgroupsobj.cxx')
-rw-r--r-- | sc/qa/extras/scdatapilotfieldgroupsobj.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sc/qa/extras/scdatapilotfieldgroupsobj.cxx b/sc/qa/extras/scdatapilotfieldgroupsobj.cxx index e742d2328205..36ca8fa32a3b 100644 --- a/sc/qa/extras/scdatapilotfieldgroupsobj.cxx +++ b/sc/qa/extras/scdatapilotfieldgroupsobj.cxx @@ -176,10 +176,7 @@ uno::Reference<uno::XInterface> ScDataPilotFieldGroupsObj::init() uno::Reference<sheet::XDataPilotFieldGrouping> xDPFG(xIA_RF0->getByIndex(0), uno::UNO_QUERY_THROW); - uno::Sequence<OUString> aElements(2); - aElements[0] = "aName"; - aElements[1] = "otherName"; - xDPFG->createNameGroup(aElements); + xDPFG->createNameGroup({ "aName", "otherName" }); uno::Reference<container::XIndexAccess> xIA_DPT1(xDPTS->getDataPilotTables(), uno::UNO_QUERY_THROW); |