diff options
author | Aaron Franke <arnfranke@yahoo.com> | 2024-01-31 00:38:11 -0600 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2024-02-22 00:14:02 -0600 |
commit | 1a6cabc0bfdb280c0684578b30337e1dada09644 (patch) | |
tree | ab3b839fb5778800512922cbc7a59b70e887b826 | |
parent | 16d61427cab3a8e43f0a9a8ee724fc176b6433c6 (diff) | |
download | redot-engine-1a6cabc0bfdb280c0684578b30337e1dada09644.tar.gz |
Make Callable bind method const
-rw-r--r-- | core/variant/callable.h | 2 | ||||
-rw-r--r-- | core/variant/variant.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/variant/callable.h b/core/variant/callable.h index 3ae424e9bf..38872b71ef 100644 --- a/core/variant/callable.h +++ b/core/variant/callable.h @@ -99,7 +99,7 @@ public: bool is_valid() const; template <typename... VarArgs> - Callable bind(VarArgs... p_args); + Callable bind(VarArgs... p_args) const; Callable bindv(const Array &p_arguments); Callable bindp(const Variant **p_arguments, int p_argcount) const; diff --git a/core/variant/variant.h b/core/variant/variant.h index d685444c30..c358559c9b 100644 --- a/core/variant/variant.h +++ b/core/variant/variant.h @@ -865,7 +865,7 @@ Variant Callable::call(VarArgs... p_args) const { } template <typename... VarArgs> -Callable Callable::bind(VarArgs... p_args) { +Callable Callable::bind(VarArgs... p_args) const { Variant args[sizeof...(p_args) + 1] = { p_args..., Variant() }; // +1 makes sure zero sized arrays are also supported. const Variant *argptrs[sizeof...(p_args) + 1]; for (uint32_t i = 0; i < sizeof...(p_args); i++) { |