summaryrefslogtreecommitdiff
path: root/platform/android
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 /platform/android
parentfd5b6e1db24facfbb6d5e9175b8e512c25fbde1d (diff)
Remove String::find_last (same as rfind)
Diffstat (limited to 'platform/android')
-rw-r--r--platform/android/export/export.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/android/export/export.cpp b/platform/android/export/export.cpp
index 2f6f483edf..474458b00f 100644
--- a/platform/android/export/export.cpp
+++ b/platform/android/export/export.cpp
@@ -1334,7 +1334,7 @@ class EditorExportPlatformAndroid : public EditorExportPlatform {
str = get_project_name(package_name);
} else {
- String lang = str.substr(str.find_last("-") + 1, str.length()).replace("-", "_");
+ String lang = str.substr(str.rfind("-") + 1, str.length()).replace("-", "_");
String prop = "application/config/name_" + lang;
if (ProjectSettings::get_singleton()->has_setting(prop)) {
str = ProjectSettings::get_singleton()->get(prop);