diff options
author | Mesut Çifci <mesutcifci97@gmail.com> | 2020-01-16 10:52:24 +0300 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-01-16 18:20:40 +0100 |
commit | 3b9495f82c5eb371b747bc9424c29c49e7a45a67 (patch) | |
tree | 214a1363c55345b77162f55d2a7fbdac12adb693 /comphelper | |
parent | 494a1eb0c818eb41122ea9ba46144723ce6d8251 (diff) |
tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor
Change-Id: Ic6ed5dcf6343a4ff59a1f69c77c82b03b4ee6198
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86904
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/source/property/genericpropertyset.cxx | 3 | ||||
-rw-r--r-- | comphelper/source/streaming/seqinputstreamserv.cxx | 3 | ||||
-rw-r--r-- | comphelper/source/streaming/seqoutputstreamserv.cxx | 3 |
3 files changed, 3 insertions, 6 deletions
diff --git a/comphelper/source/property/genericpropertyset.cxx b/comphelper/source/property/genericpropertyset.cxx index 72cec45e2992..298cb53b9c73 100644 --- a/comphelper/source/property/genericpropertyset.cxx +++ b/comphelper/source/property/genericpropertyset.cxx @@ -243,8 +243,7 @@ OUString SAL_CALL GenericPropertySet::getImplementationName() Sequence< OUString > SAL_CALL GenericPropertySet::getSupportedServiceNames( ) { - Sequence<OUString> aSNS { "com.sun.star.beans.XPropertySet" }; - return aSNS; + return { "com.sun.star.beans.XPropertySet" }; } css::uno::Reference< css::beans::XPropertySet > comphelper::GenericPropertySet_CreateInstance( comphelper::PropertySetInfo* pInfo ) diff --git a/comphelper/source/streaming/seqinputstreamserv.cxx b/comphelper/source/streaming/seqinputstreamserv.cxx index bdf6a6e19d34..2f5c21753b03 100644 --- a/comphelper/source/streaming/seqinputstreamserv.cxx +++ b/comphelper/source/streaming/seqinputstreamserv.cxx @@ -96,8 +96,7 @@ sal_Bool SAL_CALL SequenceInputStreamService::supportsService( OUString const & uno::Sequence< OUString > SAL_CALL SequenceInputStreamService::getSupportedServiceNames() { - uno::Sequence<OUString> s { "com.sun.star.io.SequenceInputStream" }; - return s; + return { "com.sun.star.io.SequenceInputStream" }; } // css::io::XInputStream: diff --git a/comphelper/source/streaming/seqoutputstreamserv.cxx b/comphelper/source/streaming/seqoutputstreamserv.cxx index cadc691c8f03..477961397413 100644 --- a/comphelper/source/streaming/seqoutputstreamserv.cxx +++ b/comphelper/source/streaming/seqoutputstreamserv.cxx @@ -83,8 +83,7 @@ sal_Bool SAL_CALL SequenceOutputStreamService::supportsService( OUString const & uno::Sequence< OUString > SAL_CALL SequenceOutputStreamService::getSupportedServiceNames() { - uno::Sequence<OUString> s { "com.sun.star.io.SequenceOutputStream" }; - return s; + return { "com.sun.star.io.SequenceOutputStream" }; } // css::io::XOutputStream: |