summaryrefslogtreecommitdiff
path: root/sw/source/uibase/envelp
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2021-06-10 00:02:28 +0200
committerJulien Nabet <serval2412@yahoo.fr>2021-06-11 14:54:36 +0200
commit76a69fb0bb1d849a2a7e76e209a30db149d79cdd (patch)
treea0358b5c8f8ba9865d82cdea3756a3438c7766ba /sw/source/uibase/envelp
parentb1fe17f280b24e78e7ee55d4762dc64a98d6f302 (diff)
Simplify Sequences initializations (sw)
Change-Id: I02647bdb720620afe20284a069a71c19dbfcea05 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116944 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sw/source/uibase/envelp')
-rw-r--r--sw/source/uibase/envelp/labelcfg.cxx8
1 files changed, 1 insertions, 7 deletions
diff --git a/sw/source/uibase/envelp/labelcfg.cxx b/sw/source/uibase/envelp/labelcfg.cxx
index ee5ac99f25e4..e0fbe142f688 100644
--- a/sw/source/uibase/envelp/labelcfg.cxx
+++ b/sw/source/uibase/envelp/labelcfg.cxx
@@ -63,13 +63,7 @@ static OUString lcl_getValue(xmlreader::XmlReader& reader,
static Sequence<OUString> lcl_CreatePropertyNames(const OUString& rPrefix)
{
- Sequence<OUString> aProperties(2);
- OUString* pProperties = aProperties.getArray();
- std::fill(aProperties.begin(), aProperties.end(), rPrefix);
-
- pProperties[ 0] += "Name";
- pProperties[ 1] += "Measure";
- return aProperties;
+ return { OUString::Concat(rPrefix) + "Name", OUString::Concat(rPrefix) + "Measure" };
}
SwLabelConfig::SwLabelConfig() :