diff options
author | Noel Grandin <noel@peralex.com> | 2015-11-16 09:23:41 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-11-16 08:35:42 +0000 |
commit | 8569c6d0ad70c32a08774fa6f5ec25b465ea98ee (patch) | |
tree | 3287608f4bb3170cc609b64c70d8d5e806c83b46 /extensions | |
parent | 57b4c4bcb0cb3c48190670b4c46ab9e92a489729 (diff) |
use initialiser list for Sequence<OUString>
Change-Id: Ia5e47261d1fc6fac2d046656c05a1c5eedb07e02
Reviewed-on: https://gerrit.libreoffice.org/19978
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/logging/csvformatter.cxx | 3 | ||||
-rw-r--r-- | extensions/source/scanner/scanner.cxx | 5 |
2 files changed, 2 insertions, 6 deletions
diff --git a/extensions/source/logging/csvformatter.cxx b/extensions/source/logging/csvformatter.cxx index 87503f3f8283..708dfbc71726 100644 --- a/extensions/source/logging/csvformatter.cxx +++ b/extensions/source/logging/csvformatter.cxx @@ -145,8 +145,7 @@ namespace css::uno::Sequence< OUString> initialColumns() { - css::uno::Sequence< OUString> result = css::uno::Sequence< OUString>(1); - result[0] = "message"; + css::uno::Sequence< OUString> result { "message" }; return result; }; } diff --git a/extensions/source/scanner/scanner.cxx b/extensions/source/scanner/scanner.cxx index e9820977f4c3..2cf61f5d5f53 100644 --- a/extensions/source/scanner/scanner.cxx +++ b/extensions/source/scanner/scanner.cxx @@ -76,10 +76,7 @@ OUString ScannerManager::getImplementationName_Static() throw() Sequence< OUString > ScannerManager::getSupportedServiceNames_Static() throw () { - Sequence< OUString > aSNS( 1 ); - - aSNS.getArray()[0] = "com.sun.star.scanner.ScannerManager"; - + Sequence< OUString > aSNS { "com.sun.star.scanner.ScannerManager" }; return aSNS; } |