refactoring
This commit is contained in:
parent
7059dd5693
commit
f591d8f8e1
|
@ -1225,7 +1225,7 @@ void Preprocessor::handleIncludes(std::string &code, const std::string &filename
|
|||
paths.push_back(path);
|
||||
std::string::size_type pos = 0;
|
||||
std::string::size_type endfilePos = 0;
|
||||
std::map<std::string, bool> handledFiles;
|
||||
std::set<std::string> handledFiles;
|
||||
endfilePos = pos;
|
||||
while ((pos = code.find("#include", pos)) != std::string::npos)
|
||||
{
|
||||
|
@ -1264,7 +1264,7 @@ void Preprocessor::handleIncludes(std::string &code, const std::string &filename
|
|||
continue;
|
||||
}
|
||||
|
||||
handledFiles[ tempFile ] = true;
|
||||
handledFiles.insert(tempFile);
|
||||
|
||||
// filename contains now a file name e.g. "menu.h"
|
||||
std::string processedFile;
|
||||
|
|
Loading…
Reference in New Issue