Remove unnecessary file open.

This commit is contained in:
Reijo Tomperi 2010-02-14 21:55:21 +02:00
parent 7f2871d353
commit 6643d39929
1 changed files with 1 additions and 1 deletions

View File

@ -1311,11 +1311,11 @@ void Preprocessor::handleIncludes(std::string &code, const std::string &filename
{ {
// We have processed this file already once, skip // We have processed this file already once, skip
// it this time to avoid ethernal loop. // it this time to avoid ethernal loop.
fin.close();
continue; continue;
} }
handledFiles.insert(tempFile); handledFiles.insert(tempFile);
std::ifstream fin(filename.c_str());
processedFile = Preprocessor::read(fin, filename, _settings); processedFile = Preprocessor::read(fin, filename, _settings);
fin.close(); fin.close();
} }