diff options
author | Emmanuel Leblond <emmanuel.leblond@gmail.com> | 2020-12-08 13:06:15 +0100 |
---|---|---|
committer | Emmanuel Leblond <emmanuel.leblond@gmail.com> | 2020-12-08 13:06:15 +0100 |
commit | a2118129321e4e4868f0ef2dd2b21699a98a126e (patch) | |
tree | 1bd19001b6826bcb7d366884340cfbec4c12c19f /modules/gdscript | |
parent | d94de32579a7a42d4751401f7fc50d5608bf9d46 (diff) |
Constify ScriptLanguage.can_inherit_from_file
Diffstat (limited to 'modules/gdscript')
-rw-r--r-- | modules/gdscript/gdscript.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript.h b/modules/gdscript/gdscript.h index 3eb260f95f..f949d26664 100644 --- a/modules/gdscript/gdscript.h +++ b/modules/gdscript/gdscript.h @@ -471,7 +471,7 @@ public: virtual bool has_named_classes() const; virtual bool supports_builtin_mode() const; virtual bool supports_documentation() const; - virtual bool can_inherit_from_file() { return true; } + virtual bool can_inherit_from_file() const { return true; } virtual int find_function(const String &p_function, const String &p_code) const; virtual String make_function(const String &p_class, const String &p_name, const PackedStringArray &p_args) const; virtual Error complete_code(const String &p_code, const String &p_path, Object *p_owner, List<ScriptCodeCompletionOption> *r_options, bool &r_forced, String &r_call_hint); |