sw/source/core/access/accpreview.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
New commits: commit 9563c13247dec8fdad8bf4e5748e3495f1a5f843 Author: Chamal <e12...@ce.pdn.ac.lk> Date: Sun Oct 2 14:46:34 2016 +0530 tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor Fixed the bug on sw/source/core/access/accpreview.cxx Change-Id: Ia16b03f4e5c377a0715608efbd0730c196b26f4b Reviewed-on: https://gerrit.libreoffice.org/29453 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/sw/source/core/access/accpreview.cxx b/sw/source/core/access/accpreview.cxx index e3b922b..75220d5 100644 --- a/sw/source/core/access/accpreview.cxx +++ b/sw/source/core/access/accpreview.cxx @@ -54,10 +54,8 @@ sal_Bool SwAccessiblePreview::supportsService( const OUString& rServiceName ) Sequence<OUString> SwAccessiblePreview::getSupportedServiceNames( ) throw( RuntimeException, std::exception ) { - Sequence<OUString> aSeq( 2 ); - aSeq[0] = "com.sun.star.text.AccessibleTextDocumentPageView"; - aSeq[1] = sAccessibleServiceName; - return aSeq; + return {"com.sun.star.text.AccessibleTextDocumentPageView", + sAccessibleServiceName}; } Sequence< sal_Int8 > SAL_CALL SwAccessiblePreview::getImplementationId() _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits