Use get_slicec instead of get_slice for single character splitters

This commit is contained in:
A Thousand Ships 2024-11-16 17:16:07 +01:00
parent b5bdb88062
commit 466590d0ec
No known key found for this signature in database
GPG key ID: DEFC5A5B1306947D
58 changed files with 210 additions and 210 deletions

View file

@ -187,7 +187,7 @@ void EditorAutoloadSettings::_autoload_edited() {
if (column == 0) {
String name = ti->get_text(0);
String old_name = selected_autoload.get_slice("/", 1);
String old_name = selected_autoload.get_slicec('/', 1);
if (name == old_name) {
return;
@ -483,7 +483,7 @@ void EditorAutoloadSettings::update_autoload() {
continue;
}
String name = pi.name.get_slice("/", 1);
String name = pi.name.get_slicec('/', 1);
String scr_path = GLOBAL_GET(pi.name);
if (name.is_empty()) {
@ -862,7 +862,7 @@ EditorAutoloadSettings::EditorAutoloadSettings() {
continue;
}
String name = pi.name.get_slice("/", 1);
String name = pi.name.get_slicec('/', 1);
String scr_path = GLOBAL_GET(pi.name);
if (name.is_empty()) {