summaryrefslogtreecommitdiffstats
path: root/unoxml/source/dom/saxbuilder.cxx
diff options
context:
space:
mode:
authorBrij Mohan Lal Srivastava <contactbrijmohan@gmail.com>2014-11-12 14:24:10 +0530
committerStephan Bergmann <sbergman@redhat.com>2014-11-14 09:20:38 +0100
commitd32be3ace8c8fd430bbecdf69f88a116b0ee91d1 (patch)
treeb373c084cb124434e0498867b24bc7bb333155dd /unoxml/source/dom/saxbuilder.cxx
parentSilence winsock deprecation warning (diff)
downloadcore-d32be3ace8c8fd430bbecdf69f88a116b0ee91d1.tar.gz
core-d32be3ace8c8fd430bbecdf69f88a116b0ee91d1.zip
fdo#86023 - O[U]String needs a 'clear' method
Added clear() method to OString and OUString class, Updated appropriate call-sites. Change-Id: I0ba97fa6dc7af3e31b605953089a4e8e9c3e61ac Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'unoxml/source/dom/saxbuilder.cxx')
-rw-r--r--unoxml/source/dom/saxbuilder.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/unoxml/source/dom/saxbuilder.cxx b/unoxml/source/dom/saxbuilder.cxx
index 80100d238591..47371312994c 100644
--- a/unoxml/source/dom/saxbuilder.cxx
+++ b/unoxml/source/dom/saxbuilder.cxx
@@ -242,7 +242,7 @@ namespace DOM
aPrefix = aName.copy(0, idx);
}
else
- aPrefix = OUString();
+ aPrefix.clear();
NSMap::const_iterator result = aNSMap.find(aPrefix);
if ( result != aNSMap.end())
@@ -262,8 +262,8 @@ namespace DOM
m_aNodeStack.push(aElement);
// set non xmlns attributes
- aPrefix = OUString();
- aURI = OUString();
+ aPrefix.clear();
+ aURI.clear();
AttrMap::const_iterator a = aAttrMap.begin();
while (a != aAttrMap.end())
{
@@ -273,7 +273,7 @@ namespace DOM
if (idx != -1)
aPrefix = attr_qname.copy(0, idx);
else
- aPrefix = OUString();
+ aPrefix.clear();
result = aNSMap.find(aPrefix);
if (result != aNSMap.end())