sax/source/fastparser/legacyfastparser.cxx |    4 ++--
 sax/source/tools/fastserializer.cxx        |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 68486cc18e3b7fcfa97b472184ede43a76c2be15
Author:     Stephan Bergmann <[email protected]>
AuthorDate: Thu Oct 19 10:30:24 2023 +0200
Commit:     Stephan Bergmann <[email protected]>
CommitDate: Fri Oct 20 09:16:44 2023 +0200

    Extended loplugin:ostr: Automatic rewrite O[U]StringLiteral: sax
    
    Change-Id: I16c763164567293b096e132650c509cfc32fd407
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158215
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <[email protected]>

diff --git a/sax/source/fastparser/legacyfastparser.cxx 
b/sax/source/fastparser/legacyfastparser.cxx
index 62e7b8a57a88..e7afc55d9327 100644
--- a/sax/source/fastparser/legacyfastparser.cxx
+++ b/sax/source/fastparser/legacyfastparser.cxx
@@ -131,8 +131,8 @@ private:
     OUString getNamespacePrefixFromToken( sal_Int32 nToken );
     OUString getNameFromToken( sal_Int32 nToken );
 
-    static constexpr OUStringLiteral aDefaultNamespace = u"";
-    static constexpr OUStringLiteral aNamespaceSeparator = u":";
+    static constexpr OUString aDefaultNamespace = u""_ustr;
+    static constexpr OUString aNamespaceSeparator = u":"_ustr;
 
 public:
     CallbackDocumentHandler( Reference< XDocumentHandler > const & 
xDocumentHandler,
diff --git a/sax/source/tools/fastserializer.cxx 
b/sax/source/tools/fastserializer.cxx
index 50408e4dc284..0a5c227b7210 100644
--- a/sax/source/tools/fastserializer.cxx
+++ b/sax/source/tools/fastserializer.cxx
@@ -47,7 +47,7 @@ using ::com::sun::star::io::XOutputStream;
 
 const char sClosingBracket[] = ">";
 const char sSlashAndClosingBracket[] = "/>";
-constexpr OStringLiteral sColon = ":";
+constexpr OString sColon = ":"_ostr;
 const char sOpeningBracket[] = "<";
 const char sOpeningBracketAndSlash[] = "</";
 const char sQuote[] = "\"";

Reply via email to