1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-24 10:07:34 +00:00

LibGUI: Make the ModelEditingDelegate constructor protected

This commit is contained in:
Andreas Kling 2020-03-05 15:32:05 +01:00
parent 4d5e144a6b
commit ca110a6e54

View file

@ -34,7 +34,6 @@ namespace GUI {
class ModelEditingDelegate { class ModelEditingDelegate {
public: public:
ModelEditingDelegate() {}
virtual ~ModelEditingDelegate() {} virtual ~ModelEditingDelegate() {}
void bind(Model& model, const ModelIndex& index) void bind(Model& model, const ModelIndex& index)
@ -57,6 +56,8 @@ public:
virtual void will_begin_editing() {} virtual void will_begin_editing() {}
protected: protected:
ModelEditingDelegate() {}
virtual RefPtr<Widget> create_widget() = 0; virtual RefPtr<Widget> create_widget() = 0;
void commit() void commit()
{ {