diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2017-08-16 17:17:56 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-08-16 17:17:56 +0200 |
| commit | b1ecaaa22b8dd87a75db414cb84ad0f60d5d4cef (patch) | |
| tree | f02f5dac7b5a1c0e35c2290513b62f4873b81a93 /modules/gdnative/godot/string.cpp | |
| parent | ae78a13f59c5a4025d078084afae2737cf0d1454 (diff) | |
| parent | 428f03cf06d3841b2a593f46aa42912ef5c82f3c (diff) | |
Merge pull request #10307 from Rubonnek/update-argument-names
Updated function argument names
Diffstat (limited to 'modules/gdnative/godot/string.cpp')
| -rw-r--r-- | modules/gdnative/godot/string.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/gdnative/godot/string.cpp b/modules/gdnative/godot/string.cpp index 76cf1fba12..2235c12a2d 100644 --- a/modules/gdnative/godot/string.cpp +++ b/modules/gdnative/godot/string.cpp @@ -63,13 +63,13 @@ void GDAPI godot_string_new_unicode_data(godot_string *r_dest, const wchar_t *p_ memnew_placement(dest, String(p_contents, p_size)); } -void GDAPI godot_string_get_data(const godot_string *p_self, char *r_dest, int *p_size) { +void GDAPI godot_string_get_data(const godot_string *p_self, char *p_dest, int *p_size) { String *self = (String *)p_self; if (p_size != NULL) { *p_size = self->utf8().length(); } - if (r_dest != NULL) { - memcpy(r_dest, self->utf8().get_data(), *p_size); + if (p_dest != NULL) { + memcpy(p_dest, self->utf8().get_data(), *p_size); } } @@ -277,11 +277,11 @@ godot_int GDAPI godot_string_hex_to_int_without_prefix(const godot_string *p_sel return self->hex_to_int(true); } -godot_string GDAPI godot_string_insert(const godot_string *p_self, godot_int at_pos, godot_string p_content) { +godot_string GDAPI godot_string_insert(const godot_string *p_self, godot_int p_at_pos, godot_string p_string) { const String *self = (const String *)p_self; - String *content = (String *)&p_content; + String *content = (String *)&p_string; godot_string result; - memnew_placement(&result, String(self->insert(at_pos, *content))); + memnew_placement(&result, String(self->insert(p_at_pos, *content))); return result; } |