Remove String::find_last (same as rfind)
This commit is contained in:
parent
fd5b6e1db2
commit
929b98d24b
26 changed files with 41 additions and 80 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue