Moving comment filtering to Utils class. Adding comment filtering to collection basic lists (include.txt, exclude.txt, etc).

This commit is contained in:
Don Honerbrink
2015-06-15 11:17:49 -05:00
parent f91fc16c6e
commit b95c7c44f0
4 changed files with 21 additions and 9 deletions

View File

@@ -203,12 +203,13 @@ bool CollectionInfoBuilder::ImportBasicList(CollectionInfo * /*info*/, std::stri
return false;
}
std::string line;
std::string line;
while(std::getline(includeStream, line))
{
if(list.find(line) == list.end())
line = Utils::FilterComments(line);
if(!line.empty() && list.find(line) == list.end())
{
Item *i = new Item();