You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-27 15:57:02 +00:00
Use get_slicec instead of get_slice for single character splitters
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user