Skip to content

Commit e2a10cd

Browse files
committed
Merge pull request godotengine#113934 from raulsntos/file_access_param_name
Remove underscore from parameter name in `FileAccess::set_extended_attribute_string`
2 parents 2b4569d + 8355286 commit e2a10cd

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

core/io/file_access.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1122,7 +1122,7 @@ void FileAccess::_bind_methods() {
11221122
ClassDB::bind_static_method("FileAccess", D_METHOD("get_extended_attribute", "file", "attribute_name"), &FileAccess::get_extended_attribute);
11231123
ClassDB::bind_static_method("FileAccess", D_METHOD("get_extended_attribute_string", "file", "attribute_name"), &FileAccess::get_extended_attribute_string);
11241124
ClassDB::bind_static_method("FileAccess", D_METHOD("set_extended_attribute", "file", "attribute_name", "data"), &FileAccess::set_extended_attribute);
1125-
ClassDB::bind_static_method("FileAccess", D_METHOD("set_extended_attribute_string", "file", "attribute_name", "_data"), &FileAccess::set_extended_attribute_string);
1125+
ClassDB::bind_static_method("FileAccess", D_METHOD("set_extended_attribute_string", "file", "attribute_name", "data"), &FileAccess::set_extended_attribute_string);
11261126
ClassDB::bind_static_method("FileAccess", D_METHOD("remove_extended_attribute", "file", "attribute_name"), &FileAccess::remove_extended_attribute);
11271127
ClassDB::bind_static_method("FileAccess", D_METHOD("get_extended_attributes_list", "file"), &FileAccess::get_extended_attributes_list);
11281128

doc/classes/FileAccess.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@
445445
<return type="int" enum="Error" />
446446
<param index="0" name="file" type="String" />
447447
<param index="1" name="attribute_name" type="String" />
448-
<param index="2" name="_data" type="String" />
448+
<param index="2" name="data" type="String" />
449449
<description>
450450
Writes file extended attribute with name [param attribute_name] as a UTF-8 encoded string.
451451
[b]Note:[/b] This method is implemented on Linux, macOS, and Windows.

0 commit comments

Comments
 (0)