summaryrefslogtreecommitdiff
path: root/src/cmdline/cmdline_show.cc
diff options
context:
space:
mode:
authorDaniel Hartwig <mandyke@gmail.com>2012-06-08 13:13:38 +0800
committerDaniel Hartwig <mandyke@gmail.com>2012-06-08 13:13:38 +0800
commit992891d756518a92a6c7cca34424b925320c32c0 (patch)
tree1803fb0a81368534fdcf49053e659f064d807f4b /src/cmdline/cmdline_show.cc
parent6d6a9dc7f48b691de315bb01736beafc15d46020 (diff)
downloadaptitude-992891d756518a92a6c7cca34424b925320c32c0.tar.gz
Add typedefs for vectors of package, version search results
typedef vector<pair<PkgIterator,ref_ptr<structural_match> > > pkg_results_list; typedef vector<pair<VerIterator,ref_ptr<structural_match> > > ver_results_list;
Diffstat (limited to 'src/cmdline/cmdline_show.cc')
-rw-r--r--src/cmdline/cmdline_show.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/cmdline/cmdline_show.cc b/src/cmdline/cmdline_show.cc
index 287404ac..443eaf28 100644
--- a/src/cmdline/cmdline_show.cc
+++ b/src/cmdline/cmdline_show.cc
@@ -604,15 +604,16 @@ bool do_cmdline_show(string s, int verbose, const shared_ptr<terminal_metrics> &
return false;
}
- std::vector<std::pair<pkgCache::PkgIterator, ref_ptr<structural_match> > > matches;
+ pkg_results_list matches;
ref_ptr<search_cache> search_info(search_cache::create());
search(p, search_info,
matches,
*apt_cache_file,
*apt_package_records);
- for(std::vector<std::pair<pkgCache::PkgIterator, ref_ptr<structural_match> > >::const_iterator
- it = matches.begin(); it != matches.end(); ++it)
+ for(pkg_results_list::const_iterator it = matches.begin();
+ it != matches.end();
+ ++it)
{
if(!do_cmdline_show_target(it->first,
source,