diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2021-06-11 16:02:26 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2021-06-11 18:55:00 +0200 |
commit | c384c7d7ae39495a9cfd55c3d610133f97db1304 (patch) | |
tree | 5eff416f473c8f2f68299b0d1cc8c32e829faba1 /svtools | |
parent | 8d3e7b2f5836106eac5172d8f4868bb540d652e6 (diff) |
Simplify Sequence/vector initializations
Change-Id: Ib02e25b4600666185cf0f8d0cc8d5c64186789c5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117064
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/config/extcolorcfg.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/svtools/source/config/extcolorcfg.cxx b/svtools/source/config/extcolorcfg.cxx index 45bf2a1f18fe..499c41f4324e 100644 --- a/svtools/source/config/extcolorcfg.cxx +++ b/svtools/source/config/extcolorcfg.cxx @@ -235,9 +235,7 @@ void ExtendedColorConfig_Impl::Load(const OUString& rScheme) OUString sDisplayName("/DisplayName"); for(OUString & componentName : aComponentNames) { - uno::Sequence < OUString > aComponentDisplayNames(1); - aComponentDisplayNames[0] = componentName + sDisplayName; - uno::Sequence< uno::Any > aComponentDisplayNamesValue = GetProperties( aComponentDisplayNames ); + uno::Sequence< uno::Any > aComponentDisplayNamesValue = GetProperties( { componentName + sDisplayName } ); OUString sComponentDisplayName; if ( aComponentDisplayNamesValue.hasElements() && (aComponentDisplayNamesValue[0] >>= sComponentDisplayName) ) { |