aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/content-address.hh
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2023-02-28 12:13:43 -0500
committerJohn Ericson <John.Ericson@Obsidian.Systems>2023-02-28 12:14:11 -0500
commitd381248ec0847cacd918480e83a99287f814456a (patch)
treec5e5cc242a8ba61bab6a2e3339a993fd913126fc /src/libstore/content-address.hh
parent85bb865d200f04b73f183af722757c78d5a3be76 (diff)
No inheritance for `TextInfo` and `FixedOutputInfo`
Diffstat (limited to 'src/libstore/content-address.hh')
-rw-r--r--src/libstore/content-address.hh10
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<