From 8569c6d0ad70c32a08774fa6f5ec25b465ea98ee Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 16 Nov 2015 09:23:41 +0200 Subject: use initialiser list for Sequence Change-Id: Ia5e47261d1fc6fac2d046656c05a1c5eedb07e02 Reviewed-on: https://gerrit.libreoffice.org/19978 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sax/test/sax/testsax.cxx | 5 +---- sax/test/sax/testwriter.cxx | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) (limited to 'sax') diff --git a/sax/test/sax/testsax.cxx b/sax/test/sax/testsax.cxx index 8dbfdfbaac82..6b382befdab0 100644 --- a/sax/test/sax/testsax.cxx +++ b/sax/test/sax/testsax.cxx @@ -99,10 +99,7 @@ OUString OSaxParserTest_getImplementationName( ) throw () Sequence OSaxParserTest_getSupportedServiceNames( ) throw () { - Sequence aRet(1); - - aRet.getArray()[0] = OSaxParserTest_getImplementationName( ); - + Sequence aRet { OSaxParserTest_getImplementationName() }; return aRet; } diff --git a/sax/test/sax/testwriter.cxx b/sax/test/sax/testwriter.cxx index c0af020601f2..f07097fd1bfd 100644 --- a/sax/test/sax/testwriter.cxx +++ b/sax/test/sax/testwriter.cxx @@ -326,10 +326,7 @@ OUString OSaxWriterTest_getImplementationName( ) throw () Sequence OSaxWriterTest_getSupportedServiceNames( ) throw () { - Sequence aRet(1); - - aRet.getArray()[0] = OSaxWriterTest_getImplementationName( ); - + Sequence aRet { OSaxWriterTest_getImplementationName( ) }; return aRet; } -- cgit