From abcbe967f2d46cc6d222dda06f6b1e734b2c9e08 Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Wed, 21 May 2014 12:18:36 +0200 Subject: unoxml: huge namespacing cleanup Change-Id: I2170e8fd9ef5ca0556545cb3f656a0e1ba49f43b --- unoxml/source/dom/documentbuilder.cxx | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'unoxml/source/dom/documentbuilder.cxx') diff --git a/unoxml/source/dom/documentbuilder.cxx b/unoxml/source/dom/documentbuilder.cxx index c57ff627b35f..e404a1952b8c 100644 --- a/unoxml/source/dom/documentbuilder.cxx +++ b/unoxml/source/dom/documentbuilder.cxx @@ -45,11 +45,15 @@ #include #include - -using ::com::sun::star::xml::sax::InputSource; +using namespace css::io; +using namespace css::lang; +using namespace css::ucb; +using namespace css::uno; +using namespace css::xml::dom; +using namespace css::xml::sax; using namespace ucbhelper; -using namespace ::com::sun::star::ucb; -using ::com::sun::star::task::XInteractionHandler; +using css::task::XInteractionHandler; +using css::xml::sax::InputSource; namespace DOM @@ -59,7 +63,7 @@ namespace DOM { public: virtual InputSource SAL_CALL resolveEntity( const OUString& sPublicId, const OUString& sSystemId ) - throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE + throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE { InputSource is; is.sPublicId = sPublicId; @@ -73,7 +77,7 @@ namespace DOM Content aContent(sSystemId, aEnvironment, comphelper::getProcessComponentContext()); is.aInputStream = aContent.openStream(); - } catch (const com::sun::star::uno::Exception&) { + } catch (const css::uno::Exception&) { OSL_FAIL("exception in default entity resolver"); is.aInputStream.clear(); } @@ -205,7 +209,7 @@ namespace DOM // copy bytes to the provided buffer memcpy(buffer, chunk.getConstArray(), nread); return nread; - } catch (const com::sun::star::uno::Exception& ex) { + } catch (const css::uno::Exception& ex) { (void) ex; OSL_FAIL(OUStringToOString(ex.Message, RTL_TEXTENCODING_UTF8).getStr()); return -1; @@ -225,7 +229,7 @@ namespace DOM if (pctx->freeOnClose) delete pctx; return 0; - } catch (const com::sun::star::uno::Exception& ex) { + } catch (const css::uno::Exception& ex) { (void) ex; OSL_FAIL(OUStringToOString(ex.Message, RTL_TEXTENCODING_UTF8).getStr()); return -1; @@ -297,7 +301,7 @@ namespace DOM void throwEx(xmlParserCtxtPtr ctxt) { - com::sun::star::xml::sax::SAXParseException saxex; + css::xml::sax::SAXParseException saxex; saxex.Message = make_error_message(ctxt); saxex.LineNumber = static_cast(ctxt->lastError.line); saxex.ColumnNumber = static_cast(ctxt->lastError.int2); -- cgit