refactoring

This commit is contained in:
Daniel Marjamäki 2010-01-14 22:04:58 +01:00
parent 7059dd5693
commit f591d8f8e1
1 changed files with 2 additions and 2 deletions

View File

@ -1225,7 +1225,7 @@ void Preprocessor::handleIncludes(std::string &code, const std::string &filename
paths.push_back(path); paths.push_back(path);
std::string::size_type pos = 0; std::string::size_type pos = 0;
std::string::size_type endfilePos = 0; std::string::size_type endfilePos = 0;
std::map<std::string, bool> handledFiles; std::set<std::string> handledFiles;
endfilePos = pos; endfilePos = pos;
while ((pos = code.find("#include", pos)) != std::string::npos) while ((pos = code.find("#include", pos)) != std::string::npos)
{ {
@ -1264,7 +1264,7 @@ void Preprocessor::handleIncludes(std::string &code, const std::string &filename
continue; continue;
} }
handledFiles[ tempFile ] = true; handledFiles.insert(tempFile);
// filename contains now a file name e.g. "menu.h" // filename contains now a file name e.g. "menu.h"
std::string processedFile; std::string processedFile;