mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 14:47:46 +00:00
AK: Rename RetainPtr => RefPtr and Retained => NonnullRefPtr.
This commit is contained in:
parent
77b9fa89dd
commit
90b1354688
188 changed files with 562 additions and 562 deletions
|
@ -52,7 +52,7 @@ private:
|
|||
String m_name;
|
||||
int m_grid_size { 5 };
|
||||
bool m_should_snap_to_grid { true };
|
||||
Vector<Retained<VBWidget>> m_widgets;
|
||||
Vector<NonnullRefPtr<VBWidget>> m_widgets;
|
||||
HashMap<GWidget*, VBWidget*> m_gwidget_map;
|
||||
HashTable<VBWidget*> m_selected_widgets;
|
||||
Point m_transform_event_origin;
|
||||
|
|
|
@ -44,7 +44,7 @@ class VBWidget : public RefCounted<VBWidget>
|
|||
friend class VBWidgetPropertyModel;
|
||||
|
||||
public:
|
||||
static Retained<VBWidget> create(VBWidgetType type, VBForm& form) { return adopt(*new VBWidget(type, form)); }
|
||||
static NonnullRefPtr<VBWidget> create(VBWidgetType type, VBForm& form) { return adopt(*new VBWidget(type, form)); }
|
||||
~VBWidget();
|
||||
|
||||
bool is_selected() const;
|
||||
|
@ -80,6 +80,6 @@ private:
|
|||
VBForm& m_form;
|
||||
GWidget* m_gwidget { nullptr };
|
||||
Vector<OwnPtr<VBProperty>> m_properties;
|
||||
Retained<VBWidgetPropertyModel> m_property_model;
|
||||
NonnullRefPtr<VBWidgetPropertyModel> m_property_model;
|
||||
Rect m_transform_origin_rect;
|
||||
};
|
||||
|
|
|
@ -13,7 +13,7 @@ public:
|
|||
__Count
|
||||
};
|
||||
|
||||
static Retained<VBWidgetPropertyModel> create(VBWidget& widget) { return adopt(*new VBWidgetPropertyModel(widget)); }
|
||||
static NonnullRefPtr<VBWidgetPropertyModel> create(VBWidget& widget) { return adopt(*new VBWidgetPropertyModel(widget)); }
|
||||
virtual ~VBWidgetPropertyModel() override;
|
||||
|
||||
virtual int row_count(const GModelIndex&) const override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue