diff --git a/sax/source/fastparser/fastparser.cxx b/sax/source/fastparser/fastparser.cxx index a0e99b99fe98..bf2533258d91 100644 --- a/sax/source/fastparser/fastparser.cxx +++ b/sax/source/fastparser/fastparser.cxx @@ -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 FastSaxParser::getSupportedServiceNames() throw (uno::RuntimeException, std::exception) { Sequence seq(1); - seq[0] = OUString("com.sun.star.xml.sax.FastParser"); + seq[0] = "com.sun.star.xml.sax.FastParser"; return seq; }