From 71b2f2b8aec6fda98cf52eb8c342494037becf5a Mon Sep 17 00:00:00 2001 From: Hansem Ro Date: Wed, 18 May 2022 12:04:59 -0700 Subject: [PATCH] src/gdclip: Mark as v0.2 and remove version private field --- src/gdclip.cpp | 2 +- src/gdclip.h | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/gdclip.cpp b/src/gdclip.cpp index 558870d..3e0bf88 100644 --- a/src/gdclip.cpp +++ b/src/gdclip.cpp @@ -53,7 +53,7 @@ void GDClip::_init() { * Returns GDClip library version as String. */ String GDClip::get_version() { - return String(version); + return String(LIBGDCLIP_VERSION); } /* diff --git a/src/gdclip.h b/src/gdclip.h index 76aaf1a..7f712f6 100644 --- a/src/gdclip.h +++ b/src/gdclip.h @@ -6,7 +6,7 @@ #ifndef GDCLIP_H #define GDCLIP_H -#define LIBGDCLIP_VERSION "v0.1" +#define LIBGDCLIP_VERSION "v0.2" #include #include @@ -17,9 +17,6 @@ namespace godot { class GDClip : public Node { GODOT_CLASS(GDClip, Node) -private: - const char* version = LIBGDCLIP_VERSION; - public: static void _register_methods();