diff options
author | Mesut Çifci <mesutcifci97@gmail.com> | 2020-01-13 03:35:14 +0300 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-01-13 10:48:02 +0100 |
commit | c4f0c87b2f4ac68accc202731e0328ab101a073e (patch) | |
tree | 61637ddab237cbb5fc302213bff8c5c07e2244e8 /oox | |
parent | e111483bddecff4e874ad298f762cac42a010610 (diff) |
tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor
Change-Id: I1c1e7b42211c51f572698efd3135e388f8fb2979
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86648
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/core/filterdetect.cxx | 3 | ||||
-rw-r--r-- | oox/source/shape/ShapeContextHandler.cxx | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/oox/source/core/filterdetect.cxx b/oox/source/core/filterdetect.cxx index c83dab9d6f74..8325752360ec 100644 --- a/oox/source/core/filterdetect.cxx +++ b/oox/source/core/filterdetect.cxx @@ -371,8 +371,7 @@ sal_Bool SAL_CALL FilterDetect::supportsService( const OUString& rServiceName ) Sequence< OUString > SAL_CALL FilterDetect::getSupportedServiceNames() { - Sequence<OUString> aServiceNames { "com.sun.star.frame.ExtendedTypeDetection" }; - return aServiceNames; + return { "com.sun.star.frame.ExtendedTypeDetection" }; } // com.sun.star.document.XExtendedFilterDetection interface ------------------- diff --git a/oox/source/shape/ShapeContextHandler.cxx b/oox/source/shape/ShapeContextHandler.cxx index acc8624af602..9db23f51b325 100644 --- a/oox/source/shape/ShapeContextHandler.cxx +++ b/oox/source/shape/ShapeContextHandler.cxx @@ -599,8 +599,7 @@ OUString ShapeContextHandler::getImplementationName() uno::Sequence< OUString > ShapeContextHandler::getSupportedServiceNames() { - uno::Sequence< OUString > s { "com.sun.star.xml.sax.FastShapeContextHandler" }; - return s; + return { "com.sun.star.xml.sax.FastShapeContextHandler" }; } sal_Bool SAL_CALL ShapeContextHandler::supportsService(const OUString & ServiceName) |