]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/contrib/hashsum_template.h
Use a hardcoded buffer size of 4096 to fix performance
[apt.git] / apt-pkg / contrib / hashsum_template.h
index 869dc5cb76a41ddc3c251063edc6f22629231d4a..d0ea0971ea5e2502e92ef18845789604765836fa 100644 (file)
@@ -87,7 +87,7 @@ class HashSumValue
          Sum[I] = S[I];
    }
 
          Sum[I] = S[I];
    }
 
-   HashSumValue(std::string Str)
+   explicit HashSumValue(std::string const &Str)
    {
          memset(Sum,0,sizeof(Sum));
          Set(Str);
    {
          memset(Sum,0,sizeof(Sum));
          Set(Str);