From b93b6358b5642a8ac749b909857311593c903175 Mon Sep 17 00:00:00 2001 From: Vladislav Khorev Date: Sat, 23 Nov 2013 21:02:55 +0000 Subject: [PATCH] c++11 fixing --- include/Utils/FileUtils/FileUtils.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/Utils/FileUtils/FileUtils.h b/include/Utils/FileUtils/FileUtils.h index 0c0742e..ff4d08f 100644 --- a/include/Utils/FileUtils/FileUtils.h +++ b/include/Utils/FileUtils/FileUtils.h @@ -59,7 +59,7 @@ inline char* GetFileName(const char* filename) inline std::string GetFileName(const std::string& filename) { - std::string::const_iterator i = filename.end() - 1; + std::string::iterator i = filename.end() - 1; while ((i > filename.begin() )&&(*i != '\\')&&(*i != '/')) --i; @@ -85,7 +85,7 @@ inline char* GetFileExt(const char* filename) inline std::string GetFileExt(const std::string& filename) { - std::string::const_iterator i = filename.end() - 1; + std::string::iterator i = filename.end() - 1; while (*i != '.') --i; @@ -98,7 +98,7 @@ inline std::string GetFileNameWithoutExt(const std::string& filename) { std::string result = GetFileName(filename); - std::string::const_iterator i = result.end() - 1; + std::string::iterator i = result.end() - 1; while (*i != '.') --i;