mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
Add String::replace_char(s) methods for performance and convenience
This commit is contained in:
@@ -2294,7 +2294,7 @@ void Image::initialize_data(const char **p_xpm) {
|
||||
switch (status) {
|
||||
case READING_HEADER: {
|
||||
String line_str = line_ptr;
|
||||
line_str.replace("\t", " ");
|
||||
line_str.replace_char('\t', ' ');
|
||||
|
||||
size_width = line_str.get_slicec(' ', 0).to_int();
|
||||
size_height = line_str.get_slicec(' ', 1).to_int();
|
||||
|
||||
Reference in New Issue
Block a user