summaryrefslogtreecommitdiffstats
path: root/test/src
diff options
context:
space:
mode:
authorAndy Maloney <asmaloney@gmail.com>2023-02-02 13:01:31 -0500
committerAndy Maloney <asmaloney@gmail.com>2023-02-02 13:01:31 -0500
commitb01f0cf99b664cf31501c8e204b03c5aaafc6430 (patch)
tree9d3fb0b2d4ffa42c2c41542e93bfa62610405a4e /test/src
parentf2b97528c1369a6c40f3749817d00e4633afc43e (diff)
downloadredot-cpp-b01f0cf99b664cf31501c8e204b03c5aaafc6430.tar.gz
ExampleRef::get_id() should be const
Diffstat (limited to 'test/src')
-rw-r--r--test/src/example.cpp2
-rw-r--r--test/src/example.h2
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 {