summaryrefslogtreecommitdiffstats
path: root/core/variant_call.cpp
diff options
context:
space:
mode:
authorIgnacio Etcheverry <ignalfonsore@gmail.com>2018-08-14 19:19:05 +0200
committerIgnacio Etcheverry <ignalfonsore@gmail.com>2018-08-14 19:19:05 +0200
commit21d285e30fac8753bf2e1422054907d6b9c21150 (patch)
treee9437b2ae07f068eaa7fc22cdb207fe91d4adb1e /core/variant_call.cpp
parenta71a5fc0c3f5d487d3f18c3b9e9a768052795e86 (diff)
downloadredot-engine-21d285e30fac8753bf2e1422054907d6b9c21150.tar.gz
Dictionary: remove erase_checked(key), make erase(key) return bool
Diffstat (limited to 'core/variant_call.cpp')
-rw-r--r--core/variant_call.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/variant_call.cpp b/core/variant_call.cpp
index 20a2929dc0..f5173deabf 100644
--- a/core/variant_call.cpp
+++ b/core/variant_call.cpp
@@ -1649,7 +1649,7 @@ void register_variant_methods() {
ADDFUNC0NC(DICTIONARY, NIL, Dictionary, clear, varray());
ADDFUNC1R(DICTIONARY, BOOL, Dictionary, has, NIL, "key", varray());
ADDFUNC1R(DICTIONARY, BOOL, Dictionary, has_all, ARRAY, "keys", varray());
- ADDFUNC1(DICTIONARY, NIL, Dictionary, erase, NIL, "key", varray());
+ ADDFUNC1R(DICTIONARY, BOOL, Dictionary, erase, NIL, "key", varray());
ADDFUNC0R(DICTIONARY, INT, Dictionary, hash, varray());
ADDFUNC0R(DICTIONARY, ARRAY, Dictionary, keys, varray());
ADDFUNC0R(DICTIONARY, ARRAY, Dictionary, values, varray());