]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/contrib/hashsum_template.h
give a descriptive error for pipe tries with 'false'
[apt.git] / apt-pkg / contrib / hashsum_template.h
index 42248f6ac55202fdb1d78bcc38924eebb2e52a22..4000f230db38c16f30e2f55bea7d052a513119f3 100644 (file)
@@ -79,18 +79,15 @@ class HashSumValue
       return Value();
    }
 
       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));
    }
 #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])
    }
 #endif
    inline void Set(unsigned char S[N/8])