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/edsp/edspindexfile.h | 4 ++-- apt-pkg/edsp/edsplistparser.cc | 2 +- apt-pkg/edsp/edspsystem.h | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'apt-pkg/edsp') diff --git a/apt-pkg/edsp/edspindexfile.h b/apt-pkg/edsp/edspindexfile.h index e146ca80c..4ac0f9d72 100644 --- a/apt-pkg/edsp/edspindexfile.h +++ b/apt-pkg/edsp/edspindexfile.h @@ -40,7 +40,7 @@ protected: virtual std::string GetComponent() const APT_OVERRIDE; public: - virtual const Type *GetType() const APT_OVERRIDE APT_CONST; + virtual const Type *GetType() const APT_OVERRIDE APT_PURE; edspIndex(std::string const &File); virtual ~edspIndex(); @@ -53,7 +53,7 @@ protected: virtual std::string GetComponent() const APT_OVERRIDE; public: - virtual const Type *GetType() const APT_OVERRIDE APT_CONST; + virtual const Type *GetType() const APT_OVERRIDE APT_PURE; eippIndex(std::string const &File); virtual ~eippIndex(); diff --git a/apt-pkg/edsp/edsplistparser.cc b/apt-pkg/edsp/edsplistparser.cc index b118e127d..bd02a128a 100644 --- a/apt-pkg/edsp/edsplistparser.cc +++ b/apt-pkg/edsp/edsplistparser.cc @@ -69,7 +69,7 @@ unsigned short edspLikeListParser::VersionHash() } /*}}}*/ // ListParser::LoadReleaseInfo - Load the release information /*{{{*/ -APT_CONST bool edspLikeListParser::LoadReleaseInfo(pkgCache::RlsFileIterator & /*FileI*/, +APT_PURE bool edspLikeListParser::LoadReleaseInfo(pkgCache::RlsFileIterator & /*FileI*/, FileFd & /*File*/, std::string const &/*component*/) { return true; diff --git a/apt-pkg/edsp/edspsystem.h b/apt-pkg/edsp/edspsystem.h index af8bcf128..c70d8107a 100644 --- a/apt-pkg/edsp/edspsystem.h +++ b/apt-pkg/edsp/edspsystem.h @@ -29,11 +29,11 @@ protected: std::unique_ptr StatusFile; public: - virtual bool Lock() APT_OVERRIDE APT_CONST; - virtual bool UnLock(bool NoErrors = false) APT_OVERRIDE APT_CONST; - virtual pkgPackageManager *CreatePM(pkgDepCache *Cache) const APT_OVERRIDE APT_CONST; + virtual bool Lock() APT_OVERRIDE APT_PURE; + virtual bool UnLock(bool NoErrors = false) APT_OVERRIDE APT_PURE; + virtual pkgPackageManager *CreatePM(pkgDepCache *Cache) const APT_OVERRIDE APT_PURE; virtual bool Initialize(Configuration &Cnf) APT_OVERRIDE; - virtual bool ArchiveSupported(const char *Type) APT_OVERRIDE APT_CONST; + virtual bool ArchiveSupported(const char *Type) APT_OVERRIDE APT_PURE; virtual signed Score(Configuration const &Cnf) APT_OVERRIDE; virtual bool FindIndex(pkgCache::PkgFileIterator File, pkgIndexFile *&Found) const APT_OVERRIDE; -- cgit v1.2.3