aboutsummaryrefslogtreecommitdiff
path: root/src/clients/inquisitio/name_description_extractor.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-12-28 22:19:20 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-01-01 03:57:52 +0000
commit92f0a95d1854442e744f707eaae9add7fd92ff67 (patch)
tree9d403328a07f89c1598b4d3cb0079b292d82729e /src/clients/inquisitio/name_description_extractor.cc
parent092228a814cd6700b97112b5dcf931c80b6b9431 (diff)
downloadpaludis-92f0a95d1854442e744f707eaae9add7fd92ff67.tar.gz
paludis-92f0a95d1854442e744f707eaae9add7fd92ff67.tar.xz
Pass env, id to ConditionalDepSpec members
Diffstat (limited to 'src/clients/inquisitio/name_description_extractor.cc')
-rw-r--r--src/clients/inquisitio/name_description_extractor.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/clients/inquisitio/name_description_extractor.cc b/src/clients/inquisitio/name_description_extractor.cc
index 88defada0..3772ccbdc 100644
--- a/src/clients/inquisitio/name_description_extractor.cc
+++ b/src/clients/inquisitio/name_description_extractor.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2007 Ciaran McCreesh
+ * Copyright (c) 2007, 2010 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -36,17 +36,17 @@ NameDescriptionExtractor::~NameDescriptionExtractor()
}
bool
-NameDescriptionExtractor::operator() (const Matcher & m, const PackageID & id) const
+NameDescriptionExtractor::operator() (const Matcher & m, const std::shared_ptr<const PackageID> & id) const
{
- if (m(stringify(id.name())))
+ if (m(stringify(id->name())))
return true;
- if (id.short_description_key())
- if (m(id.short_description_key()->value()))
+ if (id->short_description_key())
+ if (m(id->short_description_key()->value()))
return true;
- if (id.long_description_key())
- if (m(id.long_description_key()->value()))
+ if (id->long_description_key())
+ if (m(id->long_description_key()->value()))
return true;
return false;