aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/fake
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/fake
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/fake')
-rw-r--r--paludis/repositories/fake/fake_installed_repository.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/paludis/repositories/fake/fake_installed_repository.cc b/paludis/repositories/fake/fake_installed_repository.cc
index 9ced042b0..7a87d69c6 100644
--- a/paludis/repositories/fake/fake_installed_repository.cc
+++ b/paludis/repositories/fake/fake_installed_repository.cc
@@ -87,10 +87,10 @@ FakeInstalledRepository::provided_packages() const
if (! (*v)->provide_key())
continue;
- DepSpecFlattener f(environment(), *v);
+ DepSpecFlattener<ProvideSpecTree, PackageDepSpec> f(environment(), *v);
(*v)->provide_key()->value()->accept(f);
- for (DepSpecFlattener::ConstIterator q(f.begin()), q_end(f.end()) ; q != q_end ; ++q)
+ for (DepSpecFlattener<ProvideSpecTree, PackageDepSpec>::ConstIterator q(f.begin()), q_end(f.end()) ; q != q_end ; ++q)
result->push_back(RepositoryProvidesEntry::create()
.virtual_name(QualifiedPackageName((*q)->text()))
.provided_by(*v));