Format config-global.{cc,hh}

Since the code is factored out, it is no longer avoding the formatter.
This commit is contained in:
John Ericson 2024-06-24 12:07:08 -04:00
parent 1620ad4587
commit b46e13840b
2 changed files with 3 additions and 2 deletions

View File

@ -5,7 +5,8 @@ namespace nix {
bool GlobalConfig::set(const std::string & name, const std::string & value) bool GlobalConfig::set(const std::string & name, const std::string & value)
{ {
for (auto & config : *configRegistrations) for (auto & config : *configRegistrations)
if (config->set(name, value)) return true; if (config->set(name, value))
return true;
unknownSettings.emplace(name, value); unknownSettings.emplace(name, value);

View File

@ -7,7 +7,7 @@ namespace nix {
struct GlobalConfig : public AbstractConfig struct GlobalConfig : public AbstractConfig
{ {
typedef std::vector<Config*> ConfigRegistrations; typedef std::vector<Config *> ConfigRegistrations;
static ConfigRegistrations * configRegistrations; static ConfigRegistrations * configRegistrations;
bool set(const std::string & name, const std::string & value) override; bool set(const std::string & name, const std::string & value) override;