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 --- xmloff/source/script/XMLEventsImportContext.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'xmloff/source/script') diff --git a/xmloff/source/script/XMLEventsImportContext.cxx b/xmloff/source/script/XMLEventsImportContext.cxx index 16bbd7943caf..e9dfc24c0a91 100644 --- a/xmloff/source/script/XMLEventsImportContext.cxx +++ b/xmloff/source/script/XMLEventsImportContext.cxx @@ -200,9 +200,7 @@ void XMLEventsImportContext::AddEventValues( xEvents->replaceByName(rEventName, aAny); } catch ( const IllegalArgumentException & rException ) { - Sequence aMsgParams(1); - - aMsgParams[0] = rEventName; + Sequence aMsgParams { rEventName }; GetImport().SetError(XMLERROR_FLAG_ERROR | XMLERROR_ILLEGAL_EVENT, -- cgit