diff options
Diffstat (limited to 'unoxml/source/dom/documentbuilder.cxx')
-rw-r--r-- | unoxml/source/dom/documentbuilder.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/unoxml/source/dom/documentbuilder.cxx b/unoxml/source/dom/documentbuilder.cxx index 5a03cf0bcf2d..bb2b7293fb45 100644 --- a/unoxml/source/dom/documentbuilder.cxx +++ b/unoxml/source/dom/documentbuilder.cxx @@ -61,6 +61,7 @@ using css::xml::sax::InputSource; namespace DOM { + namespace { class CDefaultEntityResolver : public cppu::WeakImplHelper< XEntityResolver > { @@ -88,6 +89,8 @@ namespace DOM }; + } + CDocumentBuilder::CDocumentBuilder() : m_xEntityResolver(new CDefaultEntityResolver) { @@ -169,6 +172,8 @@ namespace DOM // -- c-linkage, so the callbacks can be used by libxml extern "C" { + namespace { + // context struct passed to IO functions typedef struct context { Reference< XInputStream > rInputStream; @@ -176,6 +181,8 @@ namespace DOM bool freeOnClose; } context_t; + } + static int xmlIO_read_func( void *context, char *buffer, int len) { // get the context... |