diff options
Diffstat (limited to 'xmloff/source/script/XMLEventsImportContext.cxx')
-rw-r--r-- | xmloff/source/script/XMLEventsImportContext.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
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<OUString> aMsgParams(1); - - aMsgParams[0] = rEventName; + Sequence<OUString> aMsgParams { rEventName }; GetImport().SetError(XMLERROR_FLAG_ERROR | XMLERROR_ILLEGAL_EVENT, |