c++11 fixing

This commit is contained in:
Vladislav Khorev 2013-11-23 21:27:03 +00:00
parent b93b6358b5
commit fa0ec572c4

View File

@ -59,7 +59,7 @@ inline char* GetFileName(const char* filename)
inline std::string GetFileName(const std::string& filename) inline std::string GetFileName(const std::string& filename)
{ {
std::string::iterator i = filename.end() - 1; auto i = filename.end() - 1;
while ((i > filename.begin() )&&(*i != '\\')&&(*i != '/')) while ((i > filename.begin() )&&(*i != '\\')&&(*i != '/'))
--i; --i;
@ -85,7 +85,7 @@ inline char* GetFileExt(const char* filename)
inline std::string GetFileExt(const std::string& filename) inline std::string GetFileExt(const std::string& filename)
{ {
std::string::iterator i = filename.end() - 1; auto i = filename.end() - 1;
while (*i != '.') while (*i != '.')
--i; --i;