diff options
| author | Andy Maloney <asmaloney@gmail.com> | 2023-02-02 13:01:31 -0500 |
|---|---|---|
| committer | Andy Maloney <asmaloney@gmail.com> | 2023-02-02 13:01:31 -0500 |
| commit | b01f0cf99b664cf31501c8e204b03c5aaafc6430 (patch) | |
| tree | 9d3fb0b2d4ffa42c2c41542e93bfa62610405a4e /test/src | |
| parent | f2b97528c1369a6c40f3749817d00e4633afc43e (diff) | |
| download | redot-cpp-b01f0cf99b664cf31501c8e204b03c5aaafc6430.tar.gz | |
ExampleRef::get_id() should be const
Diffstat (limited to 'test/src')
| -rw-r--r-- | test/src/example.cpp | 2 | ||||
| -rw-r--r-- | test/src/example.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/src/example.cpp b/test/src/example.cpp index f0fce6c..cbf1331 100644 --- a/test/src/example.cpp +++ b/test/src/example.cpp @@ -16,7 +16,7 @@ using namespace godot; int ExampleRef::instance_count = 0; int ExampleRef::last_id = 0; -int ExampleRef::get_id() { +int ExampleRef::get_id() const { return id; } diff --git a/test/src/example.h b/test/src/example.h index afde0f7..ab9c8c2 100644 --- a/test/src/example.h +++ b/test/src/example.h @@ -38,7 +38,7 @@ public: ExampleRef(); ~ExampleRef(); - int get_id(); + int get_id() const; }; class ExampleMin : public Control { |
