aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/hash.hh
diff options
context:
space:
mode:
authorCarlo Nucera <carlo.nucera@protonmail.com>2020-07-01 18:03:22 -0400
committerCarlo Nucera <carlo.nucera@protonmail.com>2020-07-01 18:03:35 -0400
commitc8c4bcf90e065b47c3ee2984b1f8ff696da889af (patch)
tree921a51a4dd6e09bae2de8bcb266cd7bc67411f8d /src/libutil/hash.hh
parentd63a5ded76079008b09256aa36ef0c222919e8fa (diff)
Inline Hash::init()
Diffstat (limited to 'src/libutil/hash.hh')
-rw-r--r--src/libutil/hash.hh4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libutil/hash.hh b/src/libutil/hash.hh
index 887952ce5..766009438 100644
--- a/src/libutil/hash.hh
+++ b/src/libutil/hash.hh
@@ -32,7 +32,7 @@ struct Hash
HashType type;
/* Create a zero-filled hash object. */
- Hash(HashType type) : type(type) { init(); };
+ Hash(HashType type);
/* Initialize the hash from a string representation, in the format
"[<type>:]<base16|base32|base64>" or "<type>-<base64>" (a
@@ -49,8 +49,6 @@ private:
// type must be provided, s must not include <type> prefix
Hash(std::string_view s, std::pair<HashType, bool> typeAndSRI);
- void init();
-
public:
/* Check whether a hash is set. */
operator bool () const { return (bool) type; }