Ejemplo n.º 1
0
void DirectoryListing::Directory::getHashList(DirectoryListing::Directory::TTHSet& l)
{
	for (auto i = directories.cbegin(); i != directories.cend(); ++i)
	{
		(*i)->getHashList(l);
	}
	for (auto i = m_files.cbegin(); i != m_files.cend(); ++i)
	{
		l.insert((*i)->getTTH());
	}
}
void DirectoryListing::Directory::getHashList(DirectoryListing::Directory::TTHSet& l) {
    for(Iter i = directories.begin(); i != directories.end(); ++i) (*i)->getHashList(l);
    for(DirectoryListing::File::Iter i = files.begin(); i != files.end(); ++i) l.insert((*i)->getTTH());
}