summaryrefslogtreecommitdiff
path: root/editor/project_settings_editor.cpp
diff options
context:
space:
mode:
authorStijn Hinlopen <f.a.hinlopen@gmail.com>2020-07-03 15:26:22 +0200
committerStijn Hinlopen <f.a.hinlopen@gmail.com>2020-07-03 15:26:22 +0200
commit929b98d24b53789b3e3fbbae90aed0fe0e72b409 (patch)
tree89156a4e626da2bef5305bee55d785f5e77aec46 /editor/project_settings_editor.cpp
parentfd5b6e1db24facfbb6d5e9175b8e512c25fbde1d (diff)
Remove String::find_last (same as rfind)
Diffstat (limited to 'editor/project_settings_editor.cpp')
-rw-r--r--editor/project_settings_editor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/project_settings_editor.cpp b/editor/project_settings_editor.cpp
index a8029e1e2b..1b0276f1cd 100644
--- a/editor/project_settings_editor.cpp
+++ b/editor/project_settings_editor.cpp
@@ -1666,7 +1666,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());