From b01f0cf99b664cf31501c8e204b03c5aaafc6430 Mon Sep 17 00:00:00 2001 From: Andy Maloney Date: Thu, 2 Feb 2023 13:01:31 -0500 Subject: [PATCH] ExampleRef::get_id() should be const --- test/src/example.cpp | 2 +- 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 f0fce6c6..cbf13318 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 afde0f7a..ab9c8c20 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 {