From 0e4ac8334d02ea256f750ad61689f28ff1ebdf6c Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Thu, 24 Aug 2017 16:55:15 +0200 Subject: 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. --- apt-pkg/cachefilter.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'apt-pkg/cachefilter.cc') 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> 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); } -- cgit v1.2.3-70-g09d2