1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Merge pull request #40092 from hinlopen/remove-find-last

Remove String::find_last (same as rfind)
This commit is contained in:
Rémi Verschelde
2020-07-04 01:38:01 +02:00
committed by GitHub
26 changed files with 41 additions and 80 deletions

View File

@@ -1737,7 +1737,7 @@ void ProjectSettingsEditor::_update_translations() {
PackedStringArray selected = remaps[keys[i]];
for (int j = 0; j < selected.size(); j++) {
String s2 = selected[j];
int qp = s2.find_last(":");
int qp = s2.rfind(":");
String path = s2.substr(0, qp);
String locale = s2.substr(qp + 1, s2.length());