Merge pull request #1030 from asmaloney/constify

ExampleRef::get_id() should be const
pull/975/head
Rémi Verschelde 2023-02-07 13:48:38 +01:00
commit 9607a51b52
No known key found for this signature in database
GPG Key ID: C3336907360768E1
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ using namespace godot;
int ExampleRef::instance_count = 0; int ExampleRef::instance_count = 0;
int ExampleRef::last_id = 0; int ExampleRef::last_id = 0;
int ExampleRef::get_id() { int ExampleRef::get_id() const {
return id; return id;
} }

View File

@ -38,7 +38,7 @@ public:
ExampleRef(); ExampleRef();
~ExampleRef(); ~ExampleRef();
int get_id(); int get_id() const;
}; };
class ExampleMin : public Control { class ExampleMin : public Control {