diff options
author | Michael Stahl <mst@openoffice.org> | 2011-01-19 20:27:24 +0100 |
---|---|---|
committer | Michael Stahl <mst@openoffice.org> | 2011-01-19 20:27:24 +0100 |
commit | 3ba96ffc4bef4a6fa710c178b0bbda217293b9dc (patch) | |
tree | 359ba1cbba37fa4c39082db7c61975115e800701 /unoxml/source/dom/domimplementation.hxx | |
parent | 6f147497c08f074bd659152769f1a3008fe052b8 (diff) |
xmlfix3: unoxml: fix CDOMImplementation: static instance could be deleted
Diffstat (limited to 'unoxml/source/dom/domimplementation.hxx')
-rw-r--r-- | unoxml/source/dom/domimplementation.hxx | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/unoxml/source/dom/domimplementation.hxx b/unoxml/source/dom/domimplementation.hxx index e0282fa8e3f4..53895287e59c 100644 --- a/unoxml/source/dom/domimplementation.hxx +++ b/unoxml/source/dom/domimplementation.hxx @@ -25,18 +25,18 @@ * ************************************************************************/ -#ifndef _DOMIMPLEMENTATION_HXX -#define _DOMIMPLEMENTATION_HXX +#ifndef DOM_DOMIMPLEMENTATION_HXX +#define DOM_DOMIMPLEMENTATION_HXX -#include <map> #include <sal/types.h> -#include <cppuhelper/implbase1.hxx> + #include <com/sun/star/uno/Reference.h> -#include <com/sun/star/uno/Exception.hpp> #include <com/sun/star/xml/dom/XDocument.hpp> #include <com/sun/star/xml/dom/XDocumentType.hpp> #include <com/sun/star/xml/dom/XDOMImplementation.hpp> -#include <com/sun/star/xml/dom/XDOMImplementation.hpp> + +#include <cppuhelper/implbase1.hxx> + using ::rtl::OUString; using namespace com::sun::star::uno; @@ -44,13 +44,17 @@ using namespace com::sun::star::xml::dom; namespace DOM { - class CDOMImplementation : public cppu::WeakImplHelper1< XDOMImplementation > + class CDOMImplementation + : public cppu::WeakImplHelper1< XDOMImplementation > { public: - static CDOMImplementation* aDOMImplementation; static CDOMImplementation* get(); + // there is just 1 static instance, so these must not delete it! + virtual void SAL_CALL acquire() throw (); + virtual void SAL_CALL release() throw (); + /** Creates a DOM Document object of the specified type with its document element. */ |