From 9c300813a4371eab7246ff12938301487938fc95 Mon Sep 17 00:00:00 2001 From: Pete Johns Date: Mon, 17 Jan 2011 08:52:26 +1100 Subject: [PATCH] Fixed gcc warning. --- lib/preprocessor.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/preprocessor.cpp b/lib/preprocessor.cpp index 467ad7f58..7a7ac1c74 100644 --- a/lib/preprocessor.cpp +++ b/lib/preprocessor.cpp @@ -1537,11 +1537,11 @@ void Preprocessor::handleIncludes(std::string &code, const std::string &filePath includePaths2.push_front(""); for (std::list::const_iterator iter = includePaths2.begin(); iter != includePaths2.end(); ++iter) { - const std::string path(Path::toNativeSeparators(*iter)); - fin.open((path + filename).c_str()); + const std::string nativePath(Path::toNativeSeparators(*iter)); + fin.open((nativePath + filename).c_str()); if (fin.is_open()) { - filename = path + filename; + filename = nativePath + filename; fileOpened = true; break; }