mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:37:36 +00:00
LibGUI: Make GTableModel a retainable object.
It became clear that this class needs to support multiple owners.
This commit is contained in:
parent
41c744b3c8
commit
f47945759b
22 changed files with 44 additions and 34 deletions
|
@ -27,11 +27,11 @@ public:
|
|||
void add_message(const String& text, Color = Color::Black);
|
||||
void dump() const;
|
||||
|
||||
const IRCLogBufferModel* model() const { return m_model; }
|
||||
IRCLogBufferModel* model() { return m_model; }
|
||||
const IRCLogBufferModel* model() const { return m_model.ptr(); }
|
||||
IRCLogBufferModel* model() { return m_model.ptr(); }
|
||||
|
||||
private:
|
||||
IRCLogBuffer();
|
||||
IRCLogBufferModel* m_model { nullptr };
|
||||
Retained<IRCLogBufferModel> m_model;
|
||||
CircularQueue<Message, 1000> m_messages;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue