summaryrefslogtreecommitdiff
path: root/unoxml
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2012-03-03 15:05:28 +0100
committerJulien Nabet <serval2412@yahoo.fr>2012-03-03 15:05:28 +0100
commit5122196acc2e8e9d8e71dad3d941b373b09e0b03 (patch)
treea5bd8612eb35c772378f064813c8b8c64cf5a739 /unoxml
parent39c2a52d198f513c2f5afbd38dd9b14bff388d6e (diff)
Avoid temporary rtl::OUString
Diffstat (limited to 'unoxml')
-rw-r--r--unoxml/source/dom/saxbuilder.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/unoxml/source/dom/saxbuilder.cxx b/unoxml/source/dom/saxbuilder.cxx
index fb79fff881a8..f91851b6040e 100644
--- a/unoxml/source/dom/saxbuilder.cxx
+++ b/unoxml/source/dom/saxbuilder.cxx
@@ -231,7 +231,7 @@ namespace DOM
newprefix = attr_qname.copy(attr_qname.indexOf(':')+1);
aNSMap.insert(NSMap::value_type(newprefix, attr_value));
}
- else if (attr_qname == OUString(RTL_CONSTASCII_USTRINGPARAM("xmlns")))
+ else if (attr_qname.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("xmlns")))
{
// new default prefix
aNSMap.insert(NSMap::value_type(OUString(), attr_value));