From 3c9ff866affaae10303de04f647220a16bf7e27a Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Sun, 29 Jan 2023 13:44:37 +0100 Subject: 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 --- apt-pkg/cachefilter.h | 2 ++ 1 file changed, 2 insertions(+) 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; }; -- cgit v1.2.3-70-g09d2