aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/hash.cc
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.cc
parentd63a5ded76079008b09256aa36ef0c222919e8fa (diff)
Inline Hash::init()
Diffstat (limited to 'src/libutil/hash.cc')
-rw-r--r--src/libutil/hash.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/hash.cc b/src/libutil/hash.cc
index 448eb25f9..2087e3464 100644
--- a/src/libutil/hash.cc
+++ b/src/libutil/hash.cc
@@ -27,7 +27,7 @@ static size_t regularHashSize(HashType type) {
abort();
}
-void Hash::init()
+Hash::Hash(HashType type) : type(type)
{
hashSize = regularHashSize(type);
assert(hashSize <= maxHashSize);