summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2021-06-11 16:02:26 +0200
committerJulien Nabet <serval2412@yahoo.fr>2021-06-11 18:55:00 +0200
commitc384c7d7ae39495a9cfd55c3d610133f97db1304 (patch)
tree5eff416f473c8f2f68299b0d1cc8c32e829faba1 /filter
parent8d3e7b2f5836106eac5172d8f4868bb540d652e6 (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 'filter')
-rw-r--r--filter/source/t602/t602filter.cxx12
1 files changed, 7 insertions, 5 deletions
diff --git a/filter/source/t602/t602filter.cxx b/filter/source/t602/t602filter.cxx
index 9f96f18c1a96..f71d1c681af6 100644
--- a/filter/source/t602/t602filter.cxx
+++ b/filter/source/t602/t602filter.cxx
@@ -950,11 +950,13 @@ bool T602ImportFilterDialog::OptionsDlg()
propBool_(xPSetCodeLB,"Dropdown",true);
propBool_(xPSetCodeLB,"MultiSelection",false);
- Sequence< OUString > ous(4);
- ous[0] = getResStr(T602FILTER_STR_ENCODING_AUTO);
- ous[1] = getResStr(T602FILTER_STR_ENCODING_CP852);
- ous[2] = getResStr(T602FILTER_STR_ENCODING_CP895);
- ous[3] = getResStr(T602FILTER_STR_ENCODING_KOI8CS2);
+ Sequence< OUString > ous
+ {
+ getResStr(T602FILTER_STR_ENCODING_AUTO),
+ getResStr(T602FILTER_STR_ENCODING_CP852),
+ getResStr(T602FILTER_STR_ENCODING_CP895),
+ getResStr(T602FILTER_STR_ENCODING_KOI8CS2)
+ };
any <<= ous;
xPSetCodeLB->setPropertyValue("StringItemList", any);