diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2020-07-04 01:38:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-04 01:38:01 +0200 |
commit | c020eea184b84ec9193f2bec5265bd72f4e86d24 (patch) | |
tree | 3b1184fee57c0f0c038030808b8264021523024a /platform/android/export/export.cpp | |
parent | 79b0a9ddfc41c5b9fe3bc903cab1001aefcedde2 (diff) | |
parent | 929b98d24b53789b3e3fbbae90aed0fe0e72b409 (diff) | |
download | redot-engine-c020eea184b84ec9193f2bec5265bd72f4e86d24.tar.gz |
Merge pull request #40092 from hinlopen/remove-find-last
Remove String::find_last (same as rfind)
Diffstat (limited to 'platform/android/export/export.cpp')
-rw-r--r-- | platform/android/export/export.cpp | 2 |
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); |