sax: Use appropriate OUString functions on string constants

Change-Id: I44cf4360c323e9f424a559db6d0f271fae7a7f28
This commit is contained in:
Stephan Bergmann
2014-12-18 13:28:37 +01:00
parent 26b6387b7e
commit f4fbcef061

View File

@@ -1126,7 +1126,7 @@ void FastSaxParserImpl::callbackStartElement(const xmlChar *localName , const xm
rEvent.msElementName = OUString( XML_CAST( localName ), strlen( XML_CAST( localName )), RTL_TEXTENCODING_UTF8 );
}
else // token is always preferred.
rEvent.msElementName = OUString( "" );
rEvent.msElementName.clear();
rEntity.maNamespaceStack.push( NameWithToken(rEvent.msNamespace, nNamespaceToken) );
if (rEntity.mbEnableThreads)
@@ -1354,7 +1354,7 @@ uno::Sequence<OUString> FastSaxParser::getSupportedServiceNames()
throw (uno::RuntimeException, std::exception)
{
Sequence<OUString> seq(1);
seq[0] = OUString("com.sun.star.xml.sax.FastParser");
seq[0] = "com.sun.star.xml.sax.FastParser";
return seq;
}