mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 15:21:56 -05:00
Merge commit godotengine/godot@5abed52fd9
This commit is contained in:
@@ -60,7 +60,7 @@ bool is_operator_char(unsigned char c) {
|
||||
String remove_spaces(String &p_str) {
|
||||
String res;
|
||||
// Result is guaranteed to not be longer than the input.
|
||||
res.resize(p_str.size());
|
||||
res.resize_uninitialized(p_str.size());
|
||||
int wp = 0;
|
||||
char32_t last = 0;
|
||||
bool has_removed = false;
|
||||
@@ -84,7 +84,7 @@ String remove_spaces(String &p_str) {
|
||||
last = c;
|
||||
}
|
||||
}
|
||||
res.resize(wp);
|
||||
res.resize_uninitialized(wp);
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user