diff options
| author | David Kalnischkies <david@kalnischkies.de> | 2023-01-29 13:44:37 +0100 |
|---|---|---|
| committer | David Kalnischkies <david@kalnischkies.de> | 2023-01-29 13:59:30 +0100 |
| commit | 3c9ff866affaae10303de04f647220a16bf7e27a (patch) | |
| tree | 047cddb3abebaf24bfb82c716ea02ce2fb944a25 | |
| parent | 2cd6be476d1e5a5592ddac8a912ae73bc882d55e (diff) | |
Unhide virtual overloads in some cachefilters
The matchers are usually called via its base class, but if we would call
them via the derivate class we would not be able to call the not
explicitly "imported" overloads, which would be strange.
Reported-By: gcc-13 -Woverloaded-virtual
Gbp-Dch: Ignore
| -rw-r--r-- | apt-pkg/cachefilter.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apt-pkg/cachefilter.h b/apt-pkg/cachefilter.h index 8ea8cf3da..1b5f9aa71 100644 --- a/apt-pkg/cachefilter.h +++ b/apt-pkg/cachefilter.h @@ -134,6 +134,7 @@ public: */ PackageArchitectureMatchesSpecification(std::string const &pattern, bool const isPattern = true); bool operator() (char const * const &arch); + using PackageMatcher::operator(); bool operator() (pkgCache::PkgIterator const &Pkg) APT_OVERRIDE; ~PackageArchitectureMatchesSpecification() APT_OVERRIDE; }; @@ -142,6 +143,7 @@ class APT_PUBLIC PackageIsNewInstall : public PackageMatcher { /*{{{*/ pkgCacheFile * const Cache; public: explicit PackageIsNewInstall(pkgCacheFile * const Cache); + using PackageMatcher::operator(); bool operator() (pkgCache::PkgIterator const &Pkg) APT_OVERRIDE; ~PackageIsNewInstall() APT_OVERRIDE; }; |
