aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/vdb_repository.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-10-04 21:03:34 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-10-04 21:03:34 +0000
commit34c4559c9b6abb75e64336966c78998f94e192b6 (patch)
tree0f2f1f88f4c4f332e86a6c38cb2d40059f0d267d /paludis/repositories/e/vdb_repository.cc
parent2c378e279e1330d1fa02feceac4676342a2baafe (diff)
downloadpaludis-34c4559c9b6abb75e64336966c78998f94e192b6.tar.gz
paludis-34c4559c9b6abb75e64336966c78998f94e192b6.tar.xz
Make DepSpecFlattener a template to avoid the need for icky casting
Diffstat (limited to 'paludis/repositories/e/vdb_repository.cc')
-rw-r--r--paludis/repositories/e/vdb_repository.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/paludis/repositories/e/vdb_repository.cc b/paludis/repositories/e/vdb_repository.cc
index 7b2ccb369..26edb5086 100644
--- a/paludis/repositories/e/vdb_repository.cc
+++ b/paludis/repositories/e/vdb_repository.cc
@@ -876,12 +876,12 @@ VDBRepository::load_provided_using_cache() const
continue;
}
- DepSpecFlattener f(_imp->params.environment, id);
+ DepSpecFlattener<ProvideSpecTree, PackageDepSpec> f(_imp->params.environment, id);
tr1::shared_ptr<ProvideSpecTree::ConstItem> pp(parse_provide(
join(next(next(tokens.begin())), tokens.end(), " "), *EAPIData::get_instance()->eapi_from_string("paludis-1")));
pp->accept(f);
- for (DepSpecFlattener::ConstIterator p(f.begin()), p_end(f.end()) ; p != p_end ; ++p)
+ for (DepSpecFlattener<ProvideSpecTree, PackageDepSpec>::ConstIterator p(f.begin()), p_end(f.end()) ; p != p_end ; ++p)
result->push_back(RepositoryProvidesEntry::create()
.virtual_name(QualifiedPackageName((*p)->text()))
.provided_by(id));
@@ -925,10 +925,11 @@ VDBRepository::load_provided_the_slow_way() const
continue;
tr1::shared_ptr<const ProvideSpecTree::ConstItem> provide((*e)->provide_key()->value());;
- DepSpecFlattener f(_imp->params.environment, *e);
+ DepSpecFlattener<ProvideSpecTree, PackageDepSpec> f(_imp->params.environment, *e);
provide->accept(f);
- for (DepSpecFlattener::ConstIterator p(f.begin()), p_end(f.end()) ; p != p_end ; ++p)
+ for (DepSpecFlattener<ProvideSpecTree, PackageDepSpec>::ConstIterator
+ p(f.begin()), p_end(f.end()) ; p != p_end ; ++p)
{
QualifiedPackageName pp((*p)->text());