You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-21 14:57:09 +00:00
Add override keywords.
This commit is contained in:
@@ -43,7 +43,7 @@ class CurveEditor : public Control {
|
||||
public:
|
||||
CurveEditor();
|
||||
|
||||
Size2 get_minimum_size() const;
|
||||
Size2 get_minimum_size() const override;
|
||||
|
||||
void set_curve(Ref<Curve> curve);
|
||||
|
||||
@@ -123,8 +123,8 @@ class EditorInspectorPluginCurve : public EditorInspectorPlugin {
|
||||
GDCLASS(EditorInspectorPluginCurve, EditorInspectorPlugin);
|
||||
|
||||
public:
|
||||
virtual bool can_handle(Object *p_object);
|
||||
virtual void parse_begin(Object *p_object);
|
||||
virtual bool can_handle(Object *p_object) override;
|
||||
virtual void parse_begin(Object *p_object) override;
|
||||
};
|
||||
|
||||
class CurveEditorPlugin : public EditorPlugin {
|
||||
@@ -133,15 +133,15 @@ class CurveEditorPlugin : public EditorPlugin {
|
||||
public:
|
||||
CurveEditorPlugin(EditorNode *p_node);
|
||||
|
||||
virtual String get_name() const { return "Curve"; }
|
||||
virtual String get_name() const override { return "Curve"; }
|
||||
};
|
||||
|
||||
class CurvePreviewGenerator : public EditorResourcePreviewGenerator {
|
||||
GDCLASS(CurvePreviewGenerator, EditorResourcePreviewGenerator);
|
||||
|
||||
public:
|
||||
virtual bool handles(const String &p_type) const;
|
||||
virtual Ref<Texture2D> generate(const Ref<Resource> &p_from, const Size2 &p_size) const;
|
||||
virtual bool handles(const String &p_type) const override;
|
||||
virtual Ref<Texture2D> generate(const Ref<Resource> &p_from, const Size2 &p_size) const override;
|
||||
};
|
||||
|
||||
#endif // CURVE_EDITOR_PLUGIN_H
|
||||
|
||||
Reference in New Issue
Block a user