]> git.saurik.com Git - apt.git/commitdiff
make destructors virtual
authorMichael Vogt <mvo@debian.org>
Thu, 15 Aug 2013 07:04:25 +0000 (09:04 +0200)
committerMichael Vogt <mvo@debian.org>
Thu, 15 Aug 2013 07:04:25 +0000 (09:04 +0200)
apt-pkg/cachefilter.h

index f55d5c7f7be27d5d9a2503d89fc46bd2b758f3d9..ddd8df16eda6d7f79e58d527b864e85f8b6e54ef 100644 (file)
@@ -33,7 +33,7 @@ public:
        PackageNameMatchesRegEx(std::string const &Pattern);
        virtual bool operator() (pkgCache::PkgIterator const &Pkg);
        virtual bool operator() (pkgCache::GrpIterator const &Grp);
-       ~PackageNameMatchesRegEx();
+       virtual ~PackageNameMatchesRegEx();
 };
                                                                        /*}}}*/
 // PackageNameMatchesFnmatch                                           /*{{{*/
@@ -46,7 +46,7 @@ public:
             : Pattern(Pattern) {};
         virtual bool operator() (pkgCache::PkgIterator const &Pkg);
        virtual bool operator() (pkgCache::GrpIterator const &Grp);
-       ~PackageNameMatchesFnmatch() {};
+       virtual ~PackageNameMatchesFnmatch() {};
 };
                                                                        /*}}}*/
 // PackageArchitectureMatchesSpecification                             /*{{{*/
@@ -76,7 +76,7 @@ public:
        bool operator() (char const * const &arch);
        virtual bool operator() (pkgCache::PkgIterator const &Pkg);
        virtual bool operator() (pkgCache::VerIterator const &Ver);
-       ~PackageArchitectureMatchesSpecification();
+       virtual ~PackageArchitectureMatchesSpecification();
 };
                                                                        /*}}}*/
 }