string: fix lowercase function

This commit is contained in:
Andrzej Rybczak
2012-09-08 15:58:35 +02:00
parent 1eecc0aa0b
commit 8f693cd822
8 changed files with 32 additions and 30 deletions

View File

@@ -609,8 +609,7 @@ bool hasSupportedExtension(const std::string &file)
if (last_dot > file.length())
return false;
std::string ext = file.substr(last_dot+1);
lowercase(ext);
std::string ext = lowercase(file.substr(last_dot+1));
return SupportedExtensions.find(ext) != SupportedExtensions.end();
}