diff options
| author | A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> | 2024-11-16 18:52:15 +0100 |
|---|---|---|
| committer | A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> | 2024-11-17 10:02:18 +0100 |
| commit | 68f638cf02cc595872c1a35b78cb1ce0039b1eef (patch) | |
| tree | 311896361f77ee440b3bfd4c5b2f19f344f88333 /platform/android | |
| parent | 5efd124ca10bf46df62fa2441d80589777e54a5a (diff) | |
| download | redot-engine-68f638cf02cc595872c1a35b78cb1ce0039b1eef.tar.gz | |
Use `(r)find_char` instead of `(r)find` for single characters
Diffstat (limited to 'platform/android')
| -rw-r--r-- | platform/android/export/export_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/android/export/export_plugin.cpp b/platform/android/export/export_plugin.cpp index df3142ecbb..0b506e60d6 100644 --- a/platform/android/export/export_plugin.cpp +++ b/platform/android/export/export_plugin.cpp @@ -1564,7 +1564,7 @@ void EditorExportPlatformAndroid::_fix_resources(const Ref<EditorExportPreset> & str = get_project_name(package_name); } else { - String lang = str.substr(str.rfind("-") + 1, str.length()).replace("-", "_"); + String lang = str.substr(str.rfind_char('-') + 1, str.length()).replace("-", "_"); if (appnames.has(lang)) { str = appnames[lang]; } else { |
