diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2022-03-08 17:45:19 +0000 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2022-03-11 13:27:38 +0000 |
commit | 073e134de6260de7d90b135b7e173157741d4853 (patch) | |
tree | f35f9491e2da62f14caedf00ea9e174eabd8e924 /src/libstore/gc-store.hh | |
parent | aee56e0f895e7b9890d1ec948b24c75478f9e88e (diff) |
Rename `requireGcStore` to `GcStore::require`
I should have done this to begin with. This will be nicer once more
Store sub-interfaces exist too, to illustrate the pattern.
Diffstat (limited to 'src/libstore/gc-store.hh')
-rw-r--r-- | src/libstore/gc-store.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/gc-store.hh b/src/libstore/gc-store.hh index 829f70dc4..462cc097b 100644 --- a/src/libstore/gc-store.hh +++ b/src/libstore/gc-store.hh @@ -77,8 +77,8 @@ struct GcStore : public virtual Store /* Perform a garbage collection. */ virtual void collectGarbage(const GCOptions & options, GCResults & results) = 0; -}; -GcStore & requireGcStore(Store & store); + static GcStore & require(Store & store); +}; } |