diff options
author | vng <viktor.govako@gmail.com> | 2015-03-07 13:39:47 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:38:31 +0300 |
commit | 7a2430ab8f4c305e53ddaa15b804431969d6e748 (patch) | |
tree | 4f24191632067dd76ac2e60f66126b2b2fce2dba /coding | |
parent | 09dc89ac461eb469023643959ce91728d7e6514a (diff) |
Use faster function.
Diffstat (limited to 'coding')
-rw-r--r-- | coding/file_name_utils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coding/file_name_utils.cpp b/coding/file_name_utils.cpp index f1ddf046b4..dc0175f19e 100644 --- a/coding/file_name_utils.cpp +++ b/coding/file_name_utils.cpp @@ -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); } |