Use faster function.

This commit is contained in:
vng 2015-03-07 13:39:47 +03:00 committed by Alex Zolotarev
parent 09dc89ac46
commit 7a2430ab8f

View file

@ -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);
}