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

Takeshi Abe tabe at fixedpoint.jp
Fri Apr 6 04:34:17 UTC 2018


 svx/source/accessibility/svxpixelctlaccessiblecontext.cxx |   11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

New commits:
commit 4e13bfaf6840d90b7ee0f3b4a8c3a3e8d5d5f3b5
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date:   Thu Apr 5 23:25:45 2018 +0900

    svx: Fix the sequence's length
    
    Change-Id: I8b1798659efb798ca4f4883469118a297f40b83b
    Reviewed-on: https://gerrit.libreoffice.org/52466
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/svx/source/accessibility/svxpixelctlaccessiblecontext.cxx b/svx/source/accessibility/svxpixelctlaccessiblecontext.cxx
index 181db684e748..f0a82d551292 100644
--- a/svx/source/accessibility/svxpixelctlaccessiblecontext.cxx
+++ b/svx/source/accessibility/svxpixelctlaccessiblecontext.cxx
@@ -285,12 +285,11 @@ sal_Bool SvxPixelCtlAccessible::supportsService( const OUString& rServiceName )
 
 uno::Sequence< OUString > SvxPixelCtlAccessible::getSupportedServiceNames(  )
 {
-    uno::Sequence< OUString > aRet(2);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = "Accessible";
-    pArray[1] = "AccessibleContext";
-    pArray[2] = "AccessibleComponent";
-    return aRet;
+    return uno::Sequence< OUString >{
+        "Accessible",
+        "AccessibleContext",
+        "AccessibleComponent"
+    };
 }
 
 


More information about the Libreoffice-commits mailing list