Fixed gcc warning.

This commit is contained in:
Pete Johns 2011-01-17 08:52:26 +11:00
parent 7918c4b804
commit 9c300813a4
1 changed files with 3 additions and 3 deletions

View File

@ -1537,11 +1537,11 @@ void Preprocessor::handleIncludes(std::string &code, const std::string &filePath
includePaths2.push_front("");
for (std::list<std::string>::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;
}