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 /editor/project_manager.cpp | |
parent | 79b0a9ddfc41c5b9fe3bc903cab1001aefcedde2 (diff) | |
parent | 929b98d24b53789b3e3fbbae90aed0fe0e72b409 (diff) |
Merge pull request #40092 from hinlopen/remove-find-last
Remove String::find_last (same as rfind)
Diffstat (limited to 'editor/project_manager.cpp')
-rw-r--r-- | editor/project_manager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/project_manager.cpp b/editor/project_manager.cpp index a800f9e8eb..325d7c5ce6 100644 --- a/editor/project_manager.cpp +++ b/editor/project_manager.cpp @@ -294,7 +294,7 @@ private: // If the project name is empty or default, infer the project name from the selected folder name if (project_name->get_text() == "" || project_name->get_text() == TTR("New Game Project")) { sp = sp.replace("\\", "/"); - int lidx = sp.find_last("/"); + int lidx = sp.rfind("/"); if (lidx != -1) { sp = sp.substr(lidx + 1, sp.length()).capitalize(); |