Browse Source

ExampleRef::get_id() should be const

Andy Maloney 2 years ago
parent
commit
b01f0cf99b
2 changed files with 2 additions and 2 deletions
  1. 1 1
      test/src/example.cpp
  2. 1 1
      test/src/example.h

+ 1 - 1
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;
 }
 

+ 1 - 1
test/src/example.h

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