diff options
author | Julian Andres Klode <jak@debian.org> | 2017-08-24 16:55:15 +0200 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2017-08-24 16:56:52 +0200 |
commit | 0e4ac8334d02ea256f750ad61689f28ff1ebdf6c (patch) | |
tree | d1a1b22ec1039c8f8cd2450b28351c34b13605b3 /apt-pkg/cachefilter.cc | |
parent | 03590fb98226bfdf3147eb78effc3fa7987709bb (diff) |
Replace APT_CONST with APT_PURE everywhere
As a follow up to the last commit, let's replace APT_CONST
with APT_PURE everywhere to clean stuff up.
Diffstat (limited to 'apt-pkg/cachefilter.cc')
-rw-r--r-- | apt-pkg/cachefilter.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/apt-pkg/cachefilter.cc b/apt-pkg/cachefilter.cc index 4cbe162e9..c49f5dfd0 100644 --- a/apt-pkg/cachefilter.cc +++ b/apt-pkg/cachefilter.cc @@ -27,8 +27,8 @@ namespace APT { APT_HIDDEN std::unordered_map<std::string, std::vector<std::string>> ArchToTupleMap; namespace CacheFilter { -APT_CONST Matcher::~Matcher() {} -APT_CONST PackageMatcher::~PackageMatcher() {} +APT_PURE Matcher::~Matcher() {} +APT_PURE PackageMatcher::~PackageMatcher() {} // Name matches RegEx /*{{{*/ PackageNameMatchesRegEx::PackageNameMatchesRegEx(std::string const &Pattern) { @@ -165,13 +165,13 @@ APT_PURE bool PackageIsNewInstall::operator() (pkgCache::PkgIterator const &Pkg) PackageIsNewInstall::~PackageIsNewInstall() {} /*}}}*/ // Generica like True, False, NOT, AND, OR /*{{{*/ -APT_CONST bool TrueMatcher::operator() (pkgCache::PkgIterator const &) { return true; } -APT_CONST bool TrueMatcher::operator() (pkgCache::GrpIterator const &) { return true; } -APT_CONST bool TrueMatcher::operator() (pkgCache::VerIterator const &) { return true; } +APT_PURE bool TrueMatcher::operator() (pkgCache::PkgIterator const &) { return true; } +APT_PURE bool TrueMatcher::operator() (pkgCache::GrpIterator const &) { return true; } +APT_PURE bool TrueMatcher::operator() (pkgCache::VerIterator const &) { return true; } -APT_CONST bool FalseMatcher::operator() (pkgCache::PkgIterator const &) { return false; } -APT_CONST bool FalseMatcher::operator() (pkgCache::GrpIterator const &) { return false; } -APT_CONST bool FalseMatcher::operator() (pkgCache::VerIterator const &) { return false; } +APT_PURE bool FalseMatcher::operator() (pkgCache::PkgIterator const &) { return false; } +APT_PURE bool FalseMatcher::operator() (pkgCache::GrpIterator const &) { return false; } +APT_PURE bool FalseMatcher::operator() (pkgCache::VerIterator const &) { return false; } NOTMatcher::NOTMatcher(Matcher * const matcher) : matcher(matcher) {} bool NOTMatcher::operator() (pkgCache::PkgIterator const &Pkg) { return ! (*matcher)(Pkg); } |