diff options
Diffstat (limited to 'unoxml')
-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()) |