aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/path-info.hh
diff options
context:
space:
mode:
authorCarlo Nucera <carlo.nucera@protonmail.com>2020-08-05 15:11:49 -0400
committerCarlo Nucera <carlo.nucera@protonmail.com>2020-08-05 15:11:49 -0400
commit1ad6394b33b5e627c27bc26247f8a5e1d7d81ce1 (patch)
treec93ba7a8b1a5b7ddeadda1f2982a0dbfa0826783 /src/libstore/path-info.hh
parent1d71028f4d43f8e3ade559f7187f697c7bb9d709 (diff)
Add Hash::dummy to signal default value
We did this in the same spirit of the dummy value that's present in libstore/path.hh
Diffstat (limited to 'src/libstore/path-info.hh')
-rw-r--r--src/libstore/path-info.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/path-info.hh b/src/libstore/path-info.hh
index ba154dab7..15484717e 100644
--- a/src/libstore/path-info.hh
+++ b/src/libstore/path-info.hh
@@ -100,8 +100,8 @@ struct ValidPathInfo
ValidPathInfo(const ValidPathInfo & other) = default;
- ValidPathInfo(StorePath && path) : path(std::move(path)), narHash(Hash(htSHA256)) { };
- ValidPathInfo(const StorePath & path) : path(path), narHash(Hash(htSHA256)) { };
+ ValidPathInfo(StorePath && path) : path(std::move(path)), narHash(Hash::dummy) { };
+ ValidPathInfo(const StorePath & path) : path(path), narHash(Hash::dummy) { };
virtual ~ValidPathInfo() { }
};