From de3b9f610a14e6624acf4babd683df4e693df647 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Wed, 15 Sep 2010 21:03:21 +0200 Subject: [PATCH] Fixed #2033 (all inline suppressions fail with relative paths) --- lib/preprocessor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/preprocessor.cpp b/lib/preprocessor.cpp index 31954b142..4035d0e15 100644 --- a/lib/preprocessor.cpp +++ b/lib/preprocessor.cpp @@ -1534,7 +1534,8 @@ void Preprocessor::handleIncludes(std::string &code, const std::string &filePath 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); if (handledFiles.find(tempFile) != handledFiles.end()) {