1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

refactor(chat): cleanup document cache

This commit is contained in:
Nils Fenner 2016-07-11 11:11:29 +02:00
parent b99a9e494a
commit b204d0abad
No known key found for this signature in database
GPG Key ID: 9591A163FF9BE04C

View File

@ -27,14 +27,14 @@ class QTextDocument;
class DocumentCache class DocumentCache
{ {
public: public:
~DocumentCache();
static DocumentCache& getInstance(); static DocumentCache& getInstance();
QTextDocument* pop(); QTextDocument* pop();
void push(QTextDocument* doc); void push(QTextDocument* doc);
protected: private:
DocumentCache() {} DocumentCache() = default;
~DocumentCache();
DocumentCache(DocumentCache&) = delete; DocumentCache(DocumentCache&) = delete;
DocumentCache& operator=(const DocumentCache&) = delete; DocumentCache& operator=(const DocumentCache&) = delete;