aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ08nY2016-06-13 19:08:04 +0200
committerRémi Verschelde2016-06-25 01:22:42 +0200
commitd8d926730cbe97ad4314103169ebbd4f3aabe2fa (patch)
treea3b37a073d824dc761aa76ecdc92eaa8da88d5f7
parentda45e32ef1ee28f97c303c611dd3a7b3b0070b57 (diff)
downloadgodot-d8d926730cbe97ad4314103169ebbd4f3aabe2fa.tar.gz
godot-d8d926730cbe97ad4314103169ebbd4f3aabe2fa.tar.zst
godot-d8d926730cbe97ad4314103169ebbd4f3aabe2fa.zip
Dictionary: rename param in .has() .has_all() .erase()
fixes #5190, param should be named key, not value (cherry picked from commit 7a19e3c6ae360fc278f2eed7b5d402d794b794e3)
-rw-r--r--core/variant_call.cpp6
-rw-r--r--doc/base/classes.xml6
2 files changed, 6 insertions, 6 deletions
diff --git a/core/variant_call.cpp b/core/variant_call.cpp
index 71268a775..c16259187 100644
--- a/core/variant_call.cpp
+++ b/core/variant_call.cpp
@@ -1425,9 +1425,9 @@ _VariantCall::addfunc(Variant::m_vtype,Variant::m_ret,_SCS(#m_method),VCALL(m_cl
ADDFUNC0(DICTIONARY,INT,Dictionary,size,varray());
ADDFUNC0(DICTIONARY,BOOL,Dictionary,empty,varray());
ADDFUNC0(DICTIONARY,NIL,Dictionary,clear,varray());
- ADDFUNC1(DICTIONARY,BOOL,Dictionary,has,NIL,"value",varray());
- ADDFUNC1(DICTIONARY,BOOL,Dictionary,has_all,ARRAY,"values",varray());
- ADDFUNC1(DICTIONARY,NIL,Dictionary,erase,NIL,"value",varray());
+ ADDFUNC1(DICTIONARY,BOOL,Dictionary,has,NIL,"key",varray());
+ ADDFUNC1(DICTIONARY,BOOL,Dictionary,has_all,ARRAY,"keys",varray());
+ ADDFUNC1(DICTIONARY,NIL,Dictionary,erase,NIL,"key",varray());
ADDFUNC0(DICTIONARY,INT,Dictionary,hash,varray());
ADDFUNC0(DICTIONARY,ARRAY,Dictionary,keys,varray());
diff --git a/doc/base/classes.xml b/doc/base/classes.xml
index 2ab63d86b..7c4db1949 100644
--- a/doc/base/classes.xml
+++ b/doc/base/classes.xml
@@ -9947,7 +9947,7 @@ This approximation makes straight segments between each point, then subdivides t
</description>
</method>
<method name="erase">
- <argument index="0" name="value" type="var">
+ <argument index="0" name="key" type="var">
</argument>
<description>
Erase a dictionary key/value pair by key.
@@ -9956,7 +9956,7 @@ This approximation makes straight segments between each point, then subdivides t
<method name="has">
<return type="bool">
</return>
- <argument index="0" name="value" type="var">
+ <argument index="0" name="key" type="var">
</argument>
<description>
Return true if the dictionary has a given key.
@@ -9965,7 +9965,7 @@ This approximation makes straight segments between each point, then subdivides t
<method name="has_all">
<return type="bool">
</return>
- <argument index="0" name="values" type="Array">
+ <argument index="0" name="keys" type="Array">
</argument>
<description>
</description>