Fix ArrayList return types (#1679)
ArrayList.SetString and ArrayList.SetArray both have int return types but their methodmap natives use void.
This commit is contained in:
parent
4fc0a85581
commit
cc1c02e3de
@ -159,7 +159,7 @@ methodmap ArrayList < Handle {
|
|||||||
// @param value String value to set.
|
// @param value String value to set.
|
||||||
// @return Number of characters copied.
|
// @return Number of characters copied.
|
||||||
// @error Invalid index.
|
// @error Invalid index.
|
||||||
public native void SetString(int index, const char[] value);
|
public native int SetString(int index, const char[] value);
|
||||||
|
|
||||||
// Sets an array of cells in an array.
|
// Sets an array of cells in an array.
|
||||||
//
|
//
|
||||||
@ -169,7 +169,7 @@ methodmap ArrayList < Handle {
|
|||||||
// blocksize. Otherwise, the size passed is used.
|
// blocksize. Otherwise, the size passed is used.
|
||||||
// @return Number of cells copied.
|
// @return Number of cells copied.
|
||||||
// @error Invalid index.
|
// @error Invalid index.
|
||||||
public native void SetArray(int index, const any[] values, int size=-1);
|
public native int SetArray(int index, const any[] values, int size=-1);
|
||||||
|
|
||||||
// Shifts an array up. All array contents after and including the given
|
// Shifts an array up. All array contents after and including the given
|
||||||
// index are shifted up by one, and the given index is then "free."
|
// index are shifted up by one, and the given index is then "free."
|
||||||
|
Loading…
Reference in New Issue
Block a user