summaryrefslogtreecommitdiff
path: root/unoxml
diff options
context:
space:
mode:
Diffstat (limited to 'unoxml')
-rw-r--r--unoxml/source/dom/document.cxx4
-rw-r--r--unoxml/source/dom/documentbuilder.cxx7
2 files changed, 11 insertions, 0 deletions
diff --git a/unoxml/source/dom/document.cxx b/unoxml/source/dom/document.cxx
index e84ff5bdc8d3..51277a5ad5aa 100644
--- a/unoxml/source/dom/document.cxx
+++ b/unoxml/source/dom/document.cxx
@@ -324,12 +324,16 @@ namespace DOM
m_streamListeners.erase(aListener);
}
+ namespace {
+
// IO context functions for libxml2 interaction
typedef struct {
Reference< XOutputStream > stream;
bool const allowClose;
} IOContext;
+ }
+
extern "C" {
// write callback
// int xmlOutputWriteCallback (void * context, const char * buffer, int len)
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...