mirror of
https://github.com/NixOS/nix.git
synced 2025-11-19 16:59:35 +01:00
libutil: Make AbstractConfig::getSettings const
This commit is contained in:
parent
920a878eaa
commit
a7fb257ec2
4 changed files with 5 additions and 5 deletions
|
|
@ -85,7 +85,7 @@ void AbstractConfig::reapplyUnknownSettings()
|
|||
set(s.first, s.second);
|
||||
}
|
||||
|
||||
void Config::getSettings(std::map<std::string, SettingInfo> & res, bool overriddenOnly)
|
||||
void Config::getSettings(std::map<std::string, SettingInfo> & res, bool overriddenOnly) const
|
||||
{
|
||||
for (const auto & opt : _settings)
|
||||
if (!opt.second.isAlias && (!overriddenOnly || opt.second.setting->overridden)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue