diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2023-10-19 10:30:43 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2023-10-20 22:47:50 +0200 |
commit | d834361303bd3e2a2e1f42f89e1169544517d11d (patch) | |
tree | 6a1f44f7742d4e46dbc7872aca5b29ae078861f5 /xmlscript | |
parent | fe7f4eab95c0f8262c8e08ef6cfaf54b2cb24f18 (diff) |
Extended loplugin:ostr: Automatic rewrite O[U]StringLiteral: xmlscript
Change-Id: I8cde43bd9999c93b45376e9684f98f654d050864
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158295
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'xmlscript')
-rw-r--r-- | xmlscript/source/xml_helper/xml_impctx.cxx | 4 | ||||
-rw-r--r-- | xmlscript/source/xmllib_imexp/xmllib_export.cxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/xmlscript/source/xml_helper/xml_impctx.cxx b/xmlscript/source/xml_helper/xml_impctx.cxx index e38263243717..27a5e746a854 100644 --- a/xmlscript/source/xml_helper/xml_impctx.cxx +++ b/xmlscript/source/xml_helper/xml_impctx.cxx @@ -162,8 +162,8 @@ public: } -constexpr OUStringLiteral g_sXMLNS_PREFIX_UNKNOWN( u"<<< unknown prefix >>>" ); -constexpr OUStringLiteral g_sXMLNS( u"xmlns" ); +constexpr OUString g_sXMLNS_PREFIX_UNKNOWN( u"<<< unknown prefix >>>"_ustr ); +constexpr OUString g_sXMLNS( u"xmlns"_ustr ); DocumentHandlerImpl::DocumentHandlerImpl( diff --git a/xmlscript/source/xmllib_imexp/xmllib_export.cxx b/xmlscript/source/xmllib_imexp/xmllib_export.cxx index 00f8045a0b0c..6ab9b994c9c2 100644 --- a/xmlscript/source/xmllib_imexp/xmllib_export.cxx +++ b/xmlscript/source/xmllib_imexp/xmllib_export.cxx @@ -29,8 +29,8 @@ using namespace com::sun::star; namespace xmlscript { -constexpr OUStringLiteral aTrueStr = u"true"; -constexpr OUStringLiteral aFalseStr = u"false"; +constexpr OUString aTrueStr = u"true"_ustr; +constexpr OUString aFalseStr = u"false"_ustr; void exportLibraryContainer( |