summaryrefslogtreecommitdiff
path: root/apt-private/private-cachefile.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2020-02-24 17:08:34 +0100
committerJulian Andres Klode <julian.klode@canonical.com>2020-02-24 17:08:34 +0100
commitc3587c0d9de852eca11d9bbc004095d54115eda4 (patch)
tree6fd230a99facc60a4836fd708a5ed1180196433c /apt-private/private-cachefile.cc
parentc8821bb424e2324a36896dcccaef573c938c5b0e (diff)
Replace map_pointer_t with map_pointer<T>
This is a first step to a type safe cache, adding typing information everywhere. Next, we'll replace map_pointer<T> implementation with a type safe one.
Diffstat (limited to 'apt-private/private-cachefile.cc')
-rw-r--r--apt-private/private-cachefile.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-private/private-cachefile.cc b/apt-private/private-cachefile.cc
index ab25338ff..4becc147e 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::Package> const A, map_pointer<pkgCache::Package> 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);