mirror of
https://github.com/NixOS/nix
synced 2025-06-25 06:31:14 +02:00
Merge pull request #13196 from Mic92/store-config-base
rename StoreDirConfigItself to StoreDirConfigBase
This commit is contained in:
commit
0b46025f7a
2 changed files with 5 additions and 5 deletions
|
@ -104,7 +104,7 @@ struct MixStoreDirMethods
|
||||||
* Need to make this a separate class so I can get the right
|
* Need to make this a separate class so I can get the right
|
||||||
* initialization order in the constructor for `StoreDirConfig`.
|
* initialization order in the constructor for `StoreDirConfig`.
|
||||||
*/
|
*/
|
||||||
struct StoreDirConfigItself : Config
|
struct StoreDirConfigBase : Config
|
||||||
{
|
{
|
||||||
using Config::Config;
|
using Config::Config;
|
||||||
|
|
||||||
|
@ -118,12 +118,12 @@ struct StoreDirConfigItself : Config
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The order of `StoreDirConfigItself` and then `MixStoreDirMethods` is
|
* The order of `StoreDirConfigBase` and then `MixStoreDirMethods` is
|
||||||
* very important. This ensures that `StoreDirConfigItself::storeDir_`
|
* very important. This ensures that `StoreDirConfigBase::storeDir_`
|
||||||
* is initialized before we have our one chance (because references are
|
* is initialized before we have our one chance (because references are
|
||||||
* immutable) to initialize `MixStoreDirMethods::storeDir`.
|
* immutable) to initialize `MixStoreDirMethods::storeDir`.
|
||||||
*/
|
*/
|
||||||
struct StoreDirConfig : StoreDirConfigItself, MixStoreDirMethods
|
struct StoreDirConfig : StoreDirConfigBase, MixStoreDirMethods
|
||||||
{
|
{
|
||||||
using Params = std::map<std::string, std::string>;
|
using Params = std::map<std::string, std::string>;
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
namespace nix {
|
namespace nix {
|
||||||
|
|
||||||
StoreDirConfig::StoreDirConfig(const Params & params)
|
StoreDirConfig::StoreDirConfig(const Params & params)
|
||||||
: StoreDirConfigItself(params)
|
: StoreDirConfigBase(params)
|
||||||
, MixStoreDirMethods{storeDir_}
|
, MixStoreDirMethods{storeDir_}
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue