diff options
author | Julian Andres Klode <julian.klode@canonical.com> | 2020-02-24 17:08:34 +0100 |
---|---|---|
committer | Julian Andres Klode <julian.klode@canonical.com> | 2020-02-24 17:08:34 +0100 |
commit | c3587c0d9de852eca11d9bbc004095d54115eda4 (patch) | |
tree | 6fd230a99facc60a4836fd708a5ed1180196433c /cmdline/apt-cache.cc | |
parent | c8821bb424e2324a36896dcccaef573c938c5b0e (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 'cmdline/apt-cache.cc')
-rw-r--r-- | cmdline/apt-cache.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cmdline/apt-cache.cc b/cmdline/apt-cache.cc index acf00bdda..2d6c1a91e 100644 --- a/cmdline/apt-cache.cc +++ b/cmdline/apt-cache.cc @@ -134,14 +134,14 @@ static bool DumpPackage(CommandLine &CmdL) // ShowHashTableStats - Show stats about a hashtable /*{{{*/ // --------------------------------------------------------------------- /* */ -static map_pointer_t PackageNext(pkgCache::Package const * const P) { return P->NextPackage; } -static map_pointer_t GroupNext(pkgCache::Group const * const G) { return G->Next; } +static map_pointer<pkgCache::Package> PackageNext(pkgCache::Package const * const P) { return P->NextPackage; } +static map_pointer<pkgCache::Group> GroupNext(pkgCache::Group const * const G) { return G->Next; } template <class T> static void ShowHashTableStats(char const *const Type, T *StartP, - map_pointer_t *Hashtable, + map_pointer<T> *Hashtable, unsigned long Size, - map_pointer_t (*Next)(T const *const)) + map_pointer<T> (*Next)(T const *const)) { // hashtable stats for the HashTable unsigned long NumBuckets = Size; |