diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-01-25 13:55:08 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-01-25 13:36:24 +0000 |
commit | e60a54c717bf89c8905fcbce6d244a05532f5034 (patch) | |
tree | ecca22d6892efdadf290e510c40b5a4255158880 | |
parent | 802b80fcd378d5788adff1c7c98af526651a30c2 (diff) |
Use std::initializer_list ctor
Change-Id: I5ce7b48a3c867fe8c5fdbe0f6fc8e3f33e457082
Reviewed-on: https://gerrit.libreoffice.org/14169
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
-rw-r--r-- | writerfilter/source/filter/RtfFilter.cxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/writerfilter/source/filter/RtfFilter.cxx b/writerfilter/source/filter/RtfFilter.cxx index d737394503b7..b2de8d83bdcd 100644 --- a/writerfilter/source/filter/RtfFilter.cxx +++ b/writerfilter/source/filter/RtfFilter.cxx @@ -167,12 +167,13 @@ OUString RtfFilter_getImplementationName() throw(uno::RuntimeException) return OUString("com.sun.star.comp.Writer.RtfFilter"); } -uno::Sequence< OUString > RtfFilter_getSupportedServiceNames() throw(uno::RuntimeException) +uno::Sequence<OUString> RtfFilter_getSupportedServiceNames() throw(uno::RuntimeException) { - uno::Sequence < OUString > aRet(2); - OUString* pArray = aRet.getArray(); - pArray[0] = "com.sun.star.document.ImportFilter"; - pArray[1] = "com.sun.star.document.ExportFilter"; + uno::Sequence<OUString> aRet = + { + OUString("com.sun.star.document.ImportFilter"), + OUString("com.sun.star.document.ExportFilter") + }; return aRet; } |