From d32be3ace8c8fd430bbecdf69f88a116b0ee91d1 Mon Sep 17 00:00:00 2001 From: Brij Mohan Lal Srivastava Date: Wed, 12 Nov 2014 14:24:10 +0530 Subject: 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 --- unoxml/source/dom/documentbuilder.cxx | 2 +- unoxml/source/dom/saxbuilder.cxx | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'unoxml/source') 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()) -- cgit