summaryrefslogtreecommitdiff
path: root/writerfilter/source/dmapper/TagLogger.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'writerfilter/source/dmapper/TagLogger.hxx')
-rw-r--r--writerfilter/source/dmapper/TagLogger.hxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/writerfilter/source/dmapper/TagLogger.hxx b/writerfilter/source/dmapper/TagLogger.hxx
index 141a5348288b..5bd212807a94 100644
--- a/writerfilter/source/dmapper/TagLogger.hxx
+++ b/writerfilter/source/dmapper/TagLogger.hxx
@@ -32,19 +32,17 @@ namespace writerfilter
class TagLogger
{
- public:
- typedef std::shared_ptr<TagLogger> Pointer_t;
-
private:
+ static std::shared_ptr<TagLogger> instance;
+
xmlTextWriterPtr pWriter;
const char* pName;
- explicit TagLogger(const char* name);
-
public:
+ explicit TagLogger();
~TagLogger();
- static Pointer_t getInstance(const char * name);
+ static TagLogger& getInstance();
#ifdef DEBUG_WRITERFILTER
void setFileName(const std::string & filename);