1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-05 12:21:48 +02:00

Make setDefault() typed

This commit is contained in:
Eelco Dolstra 2021-09-22 14:15:35 +02:00
parent 8fdb1d057a
commit d8c10028d9
5 changed files with 7 additions and 13 deletions

View file

@ -177,11 +177,6 @@ AbstractSetting::AbstractSetting(
{
}
void AbstractSetting::setDefault(const std::string & str)
{
if (!overridden) set(str);
}
nlohmann::json AbstractSetting::toJSON()
{
return nlohmann::json(toJSONObject());