forked from organicmaps/organicmaps
Use faster function.
This commit is contained in:
parent
09dc89ac46
commit
7a2430ab8f
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ namespace my
|
|||
|
||||
void GetNameWithoutExt(string & name)
|
||||
{
|
||||
string::size_type const i = name.find_last_of(".");
|
||||
string::size_type const i = name.rfind('.');
|
||||
if (i != string::npos)
|
||||
name.erase(i);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue