[Libreoffice-commits] core.git: writerfilter/source

Miklos Vajna vmiklos at collabora.co.uk
Sun Jan 25 05:36:59 PST 2015


 writerfilter/source/filter/RtfFilter.cxx |   11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

New commits:
commit e60a54c717bf89c8905fcbce6d244a05532f5034
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Sun Jan 25 13:55:08 2015 +0100

    Use std::initializer_list ctor
    
    Change-Id: I5ce7b48a3c867fe8c5fdbe0f6fc8e3f33e457082
    Reviewed-on: https://gerrit.libreoffice.org/14169
    Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>
    Tested-by: Miklos Vajna <vmiklos at collabora.co.uk>

diff --git a/writerfilter/source/filter/RtfFilter.cxx b/writerfilter/source/filter/RtfFilter.cxx
index d737394..b2de8d8 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;
 }
 


More information about the Libreoffice-commits mailing list