summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2024-09-11 19:52:26 +0000
committerDavid Kalnischkies <david@kalnischkies.de>2024-11-22 12:11:13 +0000
commit0fb71e375363f2b45b033bb2b324e80214325c61 (patch)
treef341a126fc0a83e72e979972821223ef13a9336e
parentbaf93ab433283bf836848035afa31690b30868a5 (diff)
Add a virtual destructor to private CacheSet Matcher
This silences the warning: | warning: ‘class Matcher’ has virtual functions and accessible non-virtual destructor [-Wnon-virtual-dtor]
-rw-r--r--apt-private/private-cacheset.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/apt-private/private-cacheset.h b/apt-private/private-cacheset.h
index e8dba5a7d..cad8e4a00 100644
--- a/apt-private/private-cacheset.h
+++ b/apt-private/private-cacheset.h
@@ -68,6 +68,7 @@ class Matcher {
public:
virtual bool operator () (const pkgCache::PkgIterator &/*P*/) {
return true;}
+ virtual ~Matcher() = default;
};
// FIXME: add default argument for OpProgress (or overloaded function)