]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/contrib/hashes.cc
improve umask/fchmod code readability
[apt.git] / apt-pkg / contrib / hashes.cc
index 890573d9cd9858330a188fc5536605341f7deacb..1fce0d75fdd8878d91e251805a94e594e8c7348d 100644 (file)
 #include <apt-pkg/hashes.h>
 #include <apt-pkg/fileutl.h>
 #include <apt-pkg/configuration.h>
-#include <apt-pkg/macros.h>
+#include <apt-pkg/md5.h>
+#include <apt-pkg/sha1.h>
+#include <apt-pkg/sha2.h>
 
+#include <stddef.h>
+#include <algorithm>
 #include <unistd.h>
 #include <string>
 #include <iostream>
@@ -112,7 +116,7 @@ const char** HashString::SupportedHashes()
    return _SupportedHashes;
 }
 
-bool HashString::empty() const
+APT_PURE bool HashString::empty() const
 {
    return (Type.empty() || Hash.empty());
 }