summaryrefslogtreecommitdiff
path: root/sax
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2023-10-19 10:30:24 +0200
committerStephan Bergmann <sbergman@redhat.com>2023-10-20 09:16:44 +0200
commit68486cc18e3b7fcfa97b472184ede43a76c2be15 (patch)
treec091bfda8a9c8b5f6e37824a2456d3e8a17ee20c /sax
parent774a939f3be9bff97a43f8b5573ff6215b749842 (diff)
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 <sbergman@redhat.com>
Diffstat (limited to 'sax')
-rw-r--r--sax/source/fastparser/legacyfastparser.cxx4
-rw-r--r--sax/source/tools/fastserializer.cxx2
2 files changed, 3 insertions, 3 deletions
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[] = "\"";