diff options
author | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2018-08-14 19:19:05 +0200 |
---|---|---|
committer | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2018-08-14 19:19:05 +0200 |
commit | 21d285e30fac8753bf2e1422054907d6b9c21150 (patch) | |
tree | e9437b2ae07f068eaa7fc22cdb207fe91d4adb1e /modules/mono | |
parent | a71a5fc0c3f5d487d3f18c3b9e9a768052795e86 (diff) |
Dictionary: remove erase_checked(key), make erase(key) return bool
Diffstat (limited to 'modules/mono')
-rw-r--r-- | modules/mono/glue/collections_glue.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/mono/glue/collections_glue.cpp b/modules/mono/glue/collections_glue.cpp index 0551c1991a..148bb32398 100644 --- a/modules/mono/glue/collections_glue.cpp +++ b/modules/mono/glue/collections_glue.cpp @@ -182,7 +182,7 @@ bool godot_icall_Dictionary_ContainsKey(Dictionary *ptr, MonoObject *key) { } bool godot_icall_Dictionary_RemoveKey(Dictionary *ptr, MonoObject *key) { - return ptr->erase_checked(GDMonoMarshal::mono_object_to_variant(key)); + return ptr->erase(GDMonoMarshal::mono_object_to_variant(key)); } bool godot_icall_Dictionary_Remove(Dictionary *ptr, MonoObject *key, MonoObject *value) { @@ -191,7 +191,7 @@ bool godot_icall_Dictionary_Remove(Dictionary *ptr, MonoObject *key, MonoObject // no dupes Variant *ret = ptr->getptr(varKey); if (ret != NULL && *ret == GDMonoMarshal::mono_object_to_variant(value)) { - ptr->erase_checked(varKey); + ptr->erase(varKey); return true; } |