diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2023-02-28 12:13:43 -0500 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2023-02-28 12:14:11 -0500 |
commit | d381248ec0847cacd918480e83a99287f814456a (patch) | |
tree | c5e5cc242a8ba61bab6a2e3339a993fd913126fc /src/libstore/content-address.hh | |
parent | 85bb865d200f04b73f183af722757c78d5a3be76 (diff) |
No inheritance for `TextInfo` and `FixedOutputInfo`
Diffstat (limited to 'src/libstore/content-address.hh')
-rw-r--r-- | src/libstore/content-address.hh | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/libstore/content-address.hh b/src/libstore/content-address.hh index c49ab269f..9fae288d8 100644 --- a/src/libstore/content-address.hh +++ b/src/libstore/content-address.hh @@ -111,18 +111,20 @@ struct StoreReferences { */ // This matches the additional info that we need for makeTextPath -struct TextInfo : TextHash { +struct TextInfo { + TextHash hash; // References for the paths, self references disallowed StorePathSet references; - GENERATE_CMP(TextInfo, *(const TextHash *)me, me->references); + GENERATE_CMP(TextInfo, me->hash, me->references); }; -struct FixedOutputInfo : FixedOutputHash { +struct FixedOutputInfo { + FixedOutputHash hash; // References for the paths StoreReferences references; - GENERATE_CMP(FixedOutputInfo, *(const FixedOutputHash *)me, me->references); + GENERATE_CMP(FixedOutputInfo, me->hash, me->references); }; typedef std::variant< |