Use (r)find_char instead of (r)find for single characters

This commit is contained in:
A Thousand Ships 2024-11-16 18:52:15 +01:00
parent 5efd124ca1
commit 68f638cf02
No known key found for this signature in database
GPG key ID: 2033189A662F8BD7
70 changed files with 169 additions and 169 deletions

View file

@ -471,7 +471,7 @@ void DependencyRemoveDialog::_find_localization_remaps_of_removed_files(Vector<R
for (int j = 0; j < remap_keys.size(); j++) {
PackedStringArray remapped_files = remaps[remap_keys[j]];
for (int k = 0; k < remapped_files.size(); k++) {
int splitter_pos = remapped_files[k].rfind(":");
int splitter_pos = remapped_files[k].rfind_char(':');
String res_path = remapped_files[k].substr(0, splitter_pos);
if (res_path == path) {
String locale_name = remapped_files[k].substr(splitter_pos + 1);