summaryrefslogtreecommitdiff
path: root/sax
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-12-18 13:28:37 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-12-18 14:12:29 +0100
commitf4fbcef061fbd3786a42d98573aa6073d5c684bf (patch)
tree6e55b51bb38648fa93fee2b9964630ca8a39c36a /sax
parent26b6387b7ef302d6ff52a41395d0859cd1b9d981 (diff)
sax: Use appropriate OUString functions on string constants
Change-Id: I44cf4360c323e9f424a559db6d0f271fae7a7f28
Diffstat (limited to 'sax')
-rw-r--r--sax/source/fastparser/fastparser.cxx4
1 files changed, 2 insertions, 2 deletions
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<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;
}