c++11 fixing
This commit is contained in:
1 parent
3493fc9d63
commit
b93b6358b5
1 file changed
+3
-3
@@ -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::const_iterator i = filename.end() - 1;
|
std::string::iterator 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::const_iterator i = filename.end() - 1;
|
std::string::iterator i = filename.end() - 1;
|
||||||
|
|
||||||
while (*i != '.')
|
while (*i != '.')
|
||||||
--i;
|
--i;
|
||||||
@@ -98,7 +98,7 @@ inline std::string GetFileNameWithoutExt(const std::string& filename)
|
|||||||
{
|
{
|
||||||
std::string result = GetFileName(filename);
|
std::string result = GetFileName(filename);
|
||||||
|
|
||||||
std::string::const_iterator i = result.end() - 1;
|
std::string::iterator i = result.end() - 1;
|
||||||
|
|
||||||
while (*i != '.')
|
while (*i != '.')
|
||||||
--i;
|
--i;
|
||||||
|
|||||||
Reference in new issue
Block a user