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);
|
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;
|
||||||
|
|
Loading…
Reference in New Issue