mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
String: Remove erase method, bindings can't mutate String
This commit is contained in:
parent
171a69757f
commit
2beaae4b6f
10 changed files with 24 additions and 41 deletions
|
|
@ -115,7 +115,7 @@ static void handle_crash(int sig) {
|
|||
int ret;
|
||||
Error err = OS::get_singleton()->execute(String("addr2line"), args, &output, &ret);
|
||||
if (err == OK) {
|
||||
output.erase(output.length() - 1, 1);
|
||||
output = output.substr(0, output.length() - 1);
|
||||
}
|
||||
|
||||
fprintf(stderr, "[%ld] %s (%s)\n", (long int)i, fname, output.utf8().get_data());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue