diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-05-02 14:58:49 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-05-04 08:25:37 +0200 |
commit | e5398610203cfb4491de680273cb900eda1a5437 (patch) | |
tree | 2d7562baa1f883290bc823b15235dbacf66daf12 /sw/source | |
parent | da5cad1018e860b2aab773021339483e3df8ed2e (diff) |
replace createFromAscii with OUString literals in SwHTMLWriter
Change-Id: I5dbcab60a9891fe1b42867d7a15f85fd50fe963a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167095
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/filter/html/htmlbas.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/filter/html/htmlbas.cxx b/sw/source/filter/html/htmlbas.cxx index 3500a631f108..ba66315d7d65 100644 --- a/sw/source/filter/html/htmlbas.cxx +++ b/sw/source/filter/html/htmlbas.cxx @@ -298,9 +298,9 @@ void SwHTMLWriter::OutBasic(const SwHTMLWriter & rHTMLWrt) #endif } -static const char* aEventNames[] = +constexpr OUString aEventNames[] = { - "OnLoad", "OnPrepareUnload", "OnFocus", "OnUnfocus" + u"OnLoad"_ustr, u"OnPrepareUnload"_ustr, u"OnFocus"_ustr, u"OnUnfocus"_ustr }; void SwHTMLWriter::OutBasicBodyEvents() @@ -315,7 +315,7 @@ void SwHTMLWriter::OutBasicBodyEvents() uno::Reference < container::XNameReplace > xEvents = xSup->getEvents(); for ( sal_Int32 i=0; i<4; i++ ) { - std::unique_ptr<SvxMacro> pMacro = SfxEventConfiguration::ConvertToMacro( xEvents->getByName( OUString::createFromAscii(aEventNames[i]) ), pDocSh ); + std::unique_ptr<SvxMacro> pMacro = SfxEventConfiguration::ConvertToMacro( xEvents->getByName( aEventNames[i] ), pDocSh ); if ( pMacro ) { aDocTable.Insert( aBodyEventTable[i].nEvent, *pMacro ); |