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
|
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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user