Fixed #2033 (all inline suppressions fail with relative paths)

This commit is contained in:
Daniel Marjamäki 2010-09-15 21:03:21 +02:00
parent 7e67bb53b8
commit de3b9f610a
1 changed files with 2 additions and 1 deletions

View File

@ -1534,7 +1534,8 @@ void Preprocessor::handleIncludes(std::string &code, const std::string &filePath
if (fileOpened) if (fileOpened)
{ {
std::string tempFile = getFileLister()->simplifyPath(filename.c_str()); filename = getFileLister()->simplifyPath(filename.c_str());
std::string tempFile = filename;
std::transform(tempFile.begin(), tempFile.end(), tempFile.begin(), tolowerWrapper); std::transform(tempFile.begin(), tempFile.end(), tempFile.begin(), tolowerWrapper);
if (handledFiles.find(tempFile) != handledFiles.end()) if (handledFiles.find(tempFile) != handledFiles.end())
{ {