summaryrefslogtreecommitdiff
path: root/sax/source/fastparser
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-05-10 09:55:27 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-05-10 12:40:26 +0200
commit509ed148fc37731e021840f4cd8900d7a9a9b716 (patch)
treeea1a2b66ee6b5ede4efeac1beb98f0fda1525498 /sax/source/fastparser
parentce6b49c8a6c014f286deb98c353058483ae4bd95 (diff)
loplugin:ostr in sax
Change-Id: Ia7572db738f1a3d6f7bec8c3a93ec02d93a531ba Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167437 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sax/source/fastparser')
-rw-r--r--sax/source/fastparser/fastparser.cxx10
-rw-r--r--sax/source/fastparser/legacyfastparser.cxx4
2 files changed, 7 insertions, 7 deletions
diff --git a/sax/source/fastparser/fastparser.cxx b/sax/source/fastparser/fastparser.cxx
index e0338e053cf0..dd0240502c35 100644
--- a/sax/source/fastparser/fastparser.cxx
+++ b/sax/source/fastparser/fastparser.cxx
@@ -1038,7 +1038,7 @@ void FastSaxParserImpl::pushEntity(const ParserData& rEntityData,
xml::sax::InputSource const& rSource)
{
if (!rSource.aInputStream.is())
- throw SAXException("No input source", Reference<XInterface>(), Any());
+ throw SAXException(u"No input source"_ustr, Reference<XInterface>(), Any());
maEntities.emplace(rEntityData);
mpTop = &maEntities.top();
@@ -1097,7 +1097,7 @@ void FastSaxParserImpl::parse()
rEntity.mpParser = xmlCreatePushParserCtxt( &callbacks, this,
reinterpret_cast<const char*>(seqOut.getConstArray()), nRead, nullptr );
if( !rEntity.mpParser )
- throw SAXException("Couldn't create parser", Reference< XInterface >(), Any() );
+ throw SAXException(u"Couldn't create parser"_ustr, Reference< XInterface >(), Any() );
// Tell libxml2 parser to decode entities in attribute values.
// Also allow XML attribute values which are larger than 10MB, because this used to work
@@ -1136,7 +1136,7 @@ void FastSaxParserImpl::callbackStartElement(const xmlChar *localName , const xm
if( rEntity.maNamespaceCount.empty() )
{
rEntity.maNamespaceCount.push(0);
- DefineNamespace( "xml"_ostr, "http://www.w3.org/XML/1998/namespace");
+ DefineNamespace( "xml"_ostr, u"http://www.w3.org/XML/1998/namespace"_ustr);
}
else
{
@@ -1512,7 +1512,7 @@ void FastSaxParser::setNamespaceHandler( const uno::Reference< css::xml::sax::XF
OUString FastSaxParser::getImplementationName()
{
- return "com.sun.star.comp.extensions.xml.sax.FastParser";
+ return u"com.sun.star.comp.extensions.xml.sax.FastParser"_ustr;
}
void FastSaxParser::setCustomEntityNames(
@@ -1528,7 +1528,7 @@ sal_Bool FastSaxParser::supportsService( const OUString& ServiceName )
uno::Sequence<OUString> FastSaxParser::getSupportedServiceNames()
{
- return { "com.sun.star.xml.sax.FastParser" };
+ return { u"com.sun.star.xml.sax.FastParser"_ustr };
}
} // namespace sax_fastparser
diff --git a/sax/source/fastparser/legacyfastparser.cxx b/sax/source/fastparser/legacyfastparser.cxx
index e7afc55d9327..38cc558973a4 100644
--- a/sax/source/fastparser/legacyfastparser.cxx
+++ b/sax/source/fastparser/legacyfastparser.cxx
@@ -349,7 +349,7 @@ void SaxLegacyFastParser::setLocale( const Locale &locale )
OUString SaxLegacyFastParser::getImplementationName()
{
- return "com.sun.star.comp.extensions.xml.sax.LegacyFastParser";
+ return u"com.sun.star.comp.extensions.xml.sax.LegacyFastParser"_ustr;
}
sal_Bool SaxLegacyFastParser::supportsService(const OUString& ServiceName)
@@ -359,7 +359,7 @@ sal_Bool SaxLegacyFastParser::supportsService(const OUString& ServiceName)
Sequence< OUString > SaxLegacyFastParser::getSupportedServiceNames()
{
- return { "com.sun.star.xml.sax.LegacyFastParser" };
+ return { u"com.sun.star.xml.sax.LegacyFastParser"_ustr };
}
} //namespace