diff --git a/src/chatlog/documentcache.h b/src/chatlog/documentcache.h index 1930fc74c..5c9811380 100644 --- a/src/chatlog/documentcache.h +++ b/src/chatlog/documentcache.h @@ -27,14 +27,14 @@ class QTextDocument; class DocumentCache { public: - ~DocumentCache(); static DocumentCache& getInstance(); QTextDocument* pop(); void push(QTextDocument* doc); -protected: - DocumentCache() {} +private: + DocumentCache() = default; + ~DocumentCache(); DocumentCache(DocumentCache&) = delete; DocumentCache& operator=(const DocumentCache&) = delete;