summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/GModelEditingDelegate.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-09-22 00:31:54 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-09-22 00:31:54 +0200
commitd6abfbdc5a7838fdc8e20e43a5146968a8dbcd81 (patch)
tree3a2b7d2f2c3d5e231a391f5f86ac64aaea2c49fb /Libraries/LibGUI/GModelEditingDelegate.h
parentbc319d9e8873734bb8e8cea3d762d7fab2ded887 (diff)
downloadserenity-d6abfbdc5a7838fdc8e20e43a5146968a8dbcd81.zip
LibCore: Remove ObjectPtr in favor of RefPtr
Now that CObject is fully ref-counted, just use RefPtr everywhere! :^)
Diffstat (limited to 'Libraries/LibGUI/GModelEditingDelegate.h')
-rw-r--r--Libraries/LibGUI/GModelEditingDelegate.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Libraries/LibGUI/GModelEditingDelegate.h b/Libraries/LibGUI/GModelEditingDelegate.h
index 7214f9d1b6..8403fead8b 100644
--- a/Libraries/LibGUI/GModelEditingDelegate.h
+++ b/Libraries/LibGUI/GModelEditingDelegate.h
@@ -29,7 +29,7 @@ public:
virtual void will_begin_editing() { }
protected:
- virtual ObjectPtr<GWidget> create_widget() = 0;
+ virtual RefPtr<GWidget> create_widget() = 0;
void commit()
{
if (on_commit)
@@ -39,7 +39,7 @@ protected:
private:
RefPtr<GModel> m_model;
GModelIndex m_index;
- ObjectPtr<GWidget> m_widget;
+ RefPtr<GWidget> m_widget;
};
class GStringModelEditingDelegate : public GModelEditingDelegate {
@@ -47,7 +47,7 @@ public:
GStringModelEditingDelegate() {}
virtual ~GStringModelEditingDelegate() override {}
- virtual ObjectPtr<GWidget> create_widget() override
+ virtual RefPtr<GWidget> create_widget() override
{
auto textbox = GTextBox::construct(nullptr);
textbox->on_return_pressed = [this] {