Fix inconsistent overrides.

This commit is contained in:
Relintai 2023-06-08 21:00:23 +02:00
parent ffc0acba42
commit 7acef201ce

View File

@ -69,14 +69,14 @@ class NavigationLink2DEditorPlugin : public EditorPlugin {
NavigationLink2DEditor *editor; NavigationLink2DEditor *editor;
public: public:
virtual bool forward_canvas_gui_input(const Ref<InputEvent> &p_event) override { return editor->forward_canvas_gui_input(p_event); } virtual bool forward_canvas_gui_input(const Ref<InputEvent> &p_event) { return editor->forward_canvas_gui_input(p_event); }
virtual void forward_canvas_draw_over_viewport(Control *p_overlay) override { editor->forward_canvas_draw_over_viewport(p_overlay); } virtual void forward_canvas_draw_over_viewport(Control *p_overlay) { editor->forward_canvas_draw_over_viewport(p_overlay); }
virtual String get_name() const override { return "NavigationLink2D"; } virtual String get_name() const { return "NavigationLink2D"; }
bool has_main_screen() const override { return false; } bool has_main_screen() const { return false; }
virtual void edit(Object *p_object) override; virtual void edit(Object *p_object);
virtual bool handles(Object *p_object) const override; virtual bool handles(Object *p_object) const;
virtual void make_visible(bool p_visible) override; virtual void make_visible(bool p_visible);
NavigationLink2DEditorPlugin(); NavigationLink2DEditorPlugin();
}; };