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/contrib/hashes.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apt-pkg/contrib/hashes.h') diff --git a/apt-pkg/contrib/hashes.h b/apt-pkg/contrib/hashes.h index 1f8f45cb1..11521008a 100644 --- a/apt-pkg/contrib/hashes.h +++ b/apt-pkg/contrib/hashes.h @@ -72,7 +72,7 @@ class HashString bool operator!=(HashString const &other) const; // return the list of hashes we support - static APT_CONST const char** SupportedHashes(); + static APT_PURE const char** SupportedHashes(); }; class HashStringList @@ -225,7 +225,7 @@ APT_IGNORE_DEPRECATED_PUSH APT_IGNORE_DEPRECATED_POP private: - APT_HIDDEN APT_CONST inline unsigned int boolsToFlag(bool const addMD5, bool const addSHA1, bool const addSHA256, bool const addSHA512) + APT_HIDDEN APT_PURE inline unsigned int boolsToFlag(bool const addMD5, bool const addSHA1, bool const addSHA256, bool const addSHA512) { unsigned int Hashes = ~0; if (addMD5 == false) Hashes &= ~MD5SUM; -- cgit v1.2.3