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:
parent
b99a9e494a
commit
b204d0abad
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user