diff options
author | Julian Andres Klode <jak@debian.org> | 2020-02-25 17:12:50 +0000 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2020-02-25 17:12:50 +0000 |
commit | 5dd61ec04ca6b4ccbde1f94ff5f55299ba7fd1fb (patch) | |
tree | 5172f2f839fcf21297a3c98a422189237b82de44 /apt-private/private-cachefile.cc | |
parent | c8821bb424e2324a36896dcccaef573c938c5b0e (diff) | |
parent | d8c6ea90784ecb4dabbf8c2cb7b631add50ae177 (diff) |
Merge branch 'pu/typesafe-cache2' into 'master'
Type-safe cache / map_pointer
See merge request apt-team/apt!105
Diffstat (limited to 'apt-private/private-cachefile.cc')
-rw-r--r-- | apt-private/private-cachefile.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-private/private-cachefile.cc b/apt-private/private-cachefile.cc index ab25338ff..9d875b4a7 100644 --- a/apt-private/private-cachefile.cc +++ b/apt-private/private-cachefile.cc @@ -22,7 +22,7 @@ using namespace std; static bool SortPackagesByName(pkgCache * const Owner, - map_pointer_t const A, map_pointer_t const B) + map_pointer<pkgCache::Group> const A, map_pointer<pkgCache::Group> const B) { if (A == 0) return false; @@ -42,7 +42,7 @@ void SortedPackageUniverse::LazyInit() const return; pkgCache * const Owner = data(); // In Multi-Arch systems Grps are easier to sort than Pkgs - std::vector<map_pointer_t> GrpList; + std::vector<map_pointer<pkgCache::Group>> GrpList; List.reserve(Owner->Head().GroupCount); for (pkgCache::GrpIterator I{Owner->GrpBegin()}; I.end() != true; ++I) GrpList.emplace_back(I - Owner->GrpP); |