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/strutl.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'apt-pkg/contrib/strutl.h') diff --git a/apt-pkg/contrib/strutl.h b/apt-pkg/contrib/strutl.h index cc39521da..f76fbd4ab 100644 --- a/apt-pkg/contrib/strutl.h +++ b/apt-pkg/contrib/strutl.h @@ -130,7 +130,7 @@ std::vector VectorizeString(std::string const &haystack, char const */ std::vector StringSplit(std::string const &input, std::string const &sep, - unsigned int maxsplit=std::numeric_limits::max()) APT_CONST; + unsigned int maxsplit=std::numeric_limits::max()) APT_PURE; void ioprintf(std::ostream &out,const char *format,...) APT_PRINTF(2); void strprintf(std::string &out,const char *format,...) APT_PRINTF(2); @@ -141,17 +141,17 @@ bool CheckDomainList(const std::string &Host, const std::string &List); #define tolower_ascii tolower_ascii_inline #define isspace_ascii isspace_ascii_inline -APT_CONST APT_HOT +APT_PURE APT_HOT static inline int tolower_ascii_unsafe(int const c) { return c | 0x20; } -APT_CONST APT_HOT +APT_PURE APT_HOT static inline int tolower_ascii_inline(int const c) { return (c >= 'A' && c <= 'Z') ? c + 32 : c; } -APT_CONST APT_HOT +APT_PURE APT_HOT static inline int isspace_ascii_inline(int const c) { // 9='\t',10='\n',11='\v',12='\f',13='\r',32=' ' -- cgit v1.2.3