From 92a551b96e625257def26771155ebd64c6d8757e Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 29 Jun 2014 00:06:23 +0000 Subject: fixed not working singletons - still not threadsafe but at least they don't pretend to be --- src/log.h | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'src/log.h') diff --git a/src/log.h b/src/log.h index e45ee8e..5ab82fe 100644 --- a/src/log.h +++ b/src/log.h @@ -77,27 +77,14 @@ public: private: Log() {}; ~Log() {}; + Log(const Log& l); void operator=(const Log& l); - static Log* inst; - static Mutex instMutex; - class instanceCleaner - { - public: - ~instanceCleaner() { - if(Log::inst != 0) { - delete Log::inst; - } - } - }; - friend class instanceCleaner; - void log(std::string msg, int prio); Mutex mutex; friend class LogStringBuilder; - LogTargetList targets; }; -- cgit v1.2.3