Remove unnecessary file open.
This commit is contained in:
parent
7f2871d353
commit
6643d39929
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue