diff options
author | Brij Mohan Lal Srivastava <contactbrijmohan@gmail.com> | 2014-11-12 14:24:10 +0530 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-11-14 09:20:38 +0100 |
commit | d32be3ace8c8fd430bbecdf69f88a116b0ee91d1 (patch) | |
tree | b373c084cb124434e0498867b24bc7bb333155dd /unoxml/source | |
parent | f5e86ebc097f0f8bc5b282511149cb026710ecde (diff) |
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')
-rw-r--r-- | unoxml/source/dom/documentbuilder.cxx | 2 | ||||
-rw-r--r-- | unoxml/source/dom/saxbuilder.cxx | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/unoxml/source/dom/documentbuilder.cxx b/unoxml/source/dom/documentbuilder.cxx index bb8477e3eded..248cf4375f58 100644 --- a/unoxml/source/dom/documentbuilder.cxx +++ b/unoxml/source/dom/documentbuilder.cxx @@ -68,7 +68,7 @@ namespace DOM InputSource is; is.sPublicId = sPublicId; is.sSystemId = sSystemId; - is.sEncoding = OUString(); + is.sEncoding.clear(); try { Reference< XCommandEnvironment > aEnvironment( 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()) |