Fixed #4848 (--include not working since the last 2 days)

This commit is contained in:
Daniel Marjamäki 2013-06-12 16:59:25 +02:00
parent c4763b9010
commit 75616786ef
1 changed files with 2 additions and 2 deletions

View File

@ -804,7 +804,7 @@ void Preprocessor::preprocess(std::istream &srcCodeStream, std::string &processe
processedFile = read(srcCodeStream, filename); processedFile = read(srcCodeStream, filename);
if (_settings && _settings->_maxConfigs == 1U) { if (_settings) {
for (std::list<std::string>::iterator it = _settings->userIncludes.begin(); for (std::list<std::string>::iterator it = _settings->userIncludes.begin();
it != _settings->userIncludes.end(); it != _settings->userIncludes.end();
++it) { ++it) {
@ -822,7 +822,7 @@ void Preprocessor::preprocess(std::istream &srcCodeStream, std::string &processe
); );
continue; continue;
} }
std::string fileData = read(fin, filename); const std::string fileData = read(fin, filename);
fin.close(); fin.close();