X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/eff0c22e59e65b6b63e854ff41eb091278e05714..cc9745a0d81a3e1aa5ef6f99f7ad638d26bdb950:/apt-pkg/contrib/hashsum_template.h?ds=sidebyside diff --git a/apt-pkg/contrib/hashsum_template.h b/apt-pkg/contrib/hashsum_template.h index 42248f6ac..4000f230d 100644 --- a/apt-pkg/contrib/hashsum_template.h +++ b/apt-pkg/contrib/hashsum_template.h @@ -79,18 +79,15 @@ class HashSumValue return Value(); } - bool Set(std::string Str) - { - return Hex2Num(Str,Sum,sizeof(Sum)); - } #ifdef APT_PKG_EXPOSE_STRING_VIEW APT_HIDDEN bool Set(APT::StringView Str) { return Hex2Num(Str,Sum,sizeof(Sum)); } - APT_HIDDEN bool Set(const char *Str) +#else + bool Set(std::string Str) { - return Hex2Num(APT::StringView(Str),Sum,sizeof(Sum)); + return Hex2Num(Str,Sum,sizeof(Sum)); } #endif inline void Set(unsigned char S[N/8])