diff options
author | Noel Grandin <noel@peralex.com> | 2013-06-04 17:16:58 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-06-05 08:13:23 +0200 |
commit | 95c0d568fdcd0da939c891d861bb470b28079170 (patch) | |
tree | ca4e4108178ec1176fd1a976df6f31a08d590210 /unoxml | |
parent | a1afcae81ca3c4b6bb240263b3259090d48c7715 (diff) |
use uno::Reference#clear() method...
...instead of assigning an empty value. Reduces code noise.
Change-Id: Ic95b081a41fb740a738c92b3407a9514ccb8b06e
Diffstat (limited to 'unoxml')
-rw-r--r-- | unoxml/source/dom/documentbuilder.cxx | 2 | ||||
-rw-r--r-- | unoxml/source/dom/saxbuilder.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/unoxml/source/dom/documentbuilder.cxx b/unoxml/source/dom/documentbuilder.cxx index 8d434e74bf19..e3a7bac1d544 100644 --- a/unoxml/source/dom/documentbuilder.cxx +++ b/unoxml/source/dom/documentbuilder.cxx @@ -74,7 +74,7 @@ namespace DOM is.aInputStream = aContent.openStream(); } catch (const com::sun::star::uno::Exception&) { OSL_FAIL("exception in default entity resolver"); - is.aInputStream = Reference< XInputStream >(); + is.aInputStream.clear(); } return is; } diff --git a/unoxml/source/dom/saxbuilder.cxx b/unoxml/source/dom/saxbuilder.cxx index 4568e745e008..8d2ad2b4f797 100644 --- a/unoxml/source/dom/saxbuilder.cxx +++ b/unoxml/source/dom/saxbuilder.cxx @@ -95,8 +95,8 @@ namespace DOM { ::osl::MutexGuard g(m_Mutex); - m_aDocument = Reference< XDocument >(); - m_aFragment = Reference< XDocumentFragment >(); + m_aDocument.clear(); + m_aFragment.clear(); while (!m_aNodeStack.empty()) m_aNodeStack.pop(); while (!m_aNSStack.empty()) m_aNSStack.pop(); m_aState = SAXDocumentBuilderState_READY; |