summaryrefslogtreecommitdiffstats
path: root/core/variant_call.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2018-08-15 01:08:23 +0200
committerGitHub <noreply@github.com>2018-08-15 01:08:23 +0200
commit4548ec4a492402402cb737e6abc17cb3c25672c4 (patch)
treec42ac12820158b8bca1dee1871be12e32b854036 /core/variant_call.cpp
parent5d86b1e1557500df787852849f7d853e3900b898 (diff)
parent21d285e30fac8753bf2e1422054907d6b9c21150 (diff)
downloadredot-engine-4548ec4a492402402cb737e6abc17cb3c25672c4.tar.gz
Merge pull request #20945 from neikeq/dict-erase-retbool
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 b312316f9a..80cb869db2 100644
--- a/core/variant_call.cpp
+++ b/core/variant_call.cpp
@@ -1668,7 +1668,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());