From 66799311e7d794c4ce840e5ab6f148ca349df6d8 Mon Sep 17 00:00:00 2001 From: Vladislav Khorev Date: Tue, 28 May 2013 04:52:16 +0000 Subject: [PATCH] for apple llvm compiler --- 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 92ba725..6b483da 100644 --- a/include/Utils/FileUtils/FileUtils.h +++ b/include/Utils/FileUtils/FileUtils.h @@ -68,7 +68,7 @@ inline std::string GetFileName(const std::string& filename) i++; } - return std::string(i, filename.end()); + return std::string(i, filename.cend()); } //utitily to process texture uploading @@ -89,7 +89,7 @@ inline std::string GetFileExt(const std::string& filename) while (*i != '.') --i; - return std::string(i, filename.end()); + return std::string(i, filename.cend()); } @@ -102,7 +102,7 @@ inline std::string GetFileNameWithoutExt(const std::string& filename) while (*i != '.') --i; - return std::string(result.begin(), i); + return std::string(result.cbegin(), i); } std::string GetFilePath(const std::string& filename);