1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-24 22:11:15 +02:00

Merge pull request #13196 from Mic92/store-config-base

rename StoreDirConfigItself to StoreDirConfigBase
This commit is contained in:
Eelco Dolstra 2025-05-15 12:03:11 +02:00 committed by GitHub
commit 0b46025f7a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View file

@ -104,7 +104,7 @@ struct MixStoreDirMethods
* Need to make this a separate class so I can get the right
* initialization order in the constructor for `StoreDirConfig`.
*/
struct StoreDirConfigItself : Config
struct StoreDirConfigBase : Config
{
using Config::Config;
@ -118,12 +118,12 @@ struct StoreDirConfigItself : Config
};
/**
* The order of `StoreDirConfigItself` and then `MixStoreDirMethods` is
* very important. This ensures that `StoreDirConfigItself::storeDir_`
* The order of `StoreDirConfigBase` and then `MixStoreDirMethods` is
* very important. This ensures that `StoreDirConfigBase::storeDir_`
* is initialized before we have our one chance (because references are
* immutable) to initialize `MixStoreDirMethods::storeDir`.
*/
struct StoreDirConfig : StoreDirConfigItself, MixStoreDirMethods
struct StoreDirConfig : StoreDirConfigBase, MixStoreDirMethods
{
using Params = std::map<std::string, std::string>;

View file

@ -5,7 +5,7 @@
namespace nix {
StoreDirConfig::StoreDirConfig(const Params & params)
: StoreDirConfigItself(params)
: StoreDirConfigBase(params)
, MixStoreDirMethods{storeDir_}
{
}