From 929b98d24b53789b3e3fbbae90aed0fe0e72b409 Mon Sep 17 00:00:00 2001 From: Stijn Hinlopen Date: Fri, 3 Jul 2020 15:26:22 +0200 Subject: Remove String::find_last (same as rfind) --- editor/project_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editor/project_manager.cpp') 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(); -- cgit v1.2.3