mirror of
https://github.com/NixOS/nix.git
synced 2025-11-14 14:32:42 +01:00
Make toJSONObject const
This commit is contained in:
parent
ad385f9ec4
commit
f404e9b3b3
3 changed files with 4 additions and 4 deletions
|
|
@ -221,7 +221,7 @@ nlohmann::json AbstractSetting::toJSON()
|
|||
return nlohmann::json(toJSONObject());
|
||||
}
|
||||
|
||||
std::map<std::string, nlohmann::json> AbstractSetting::toJSONObject()
|
||||
std::map<std::string, nlohmann::json> AbstractSetting::toJSONObject() const
|
||||
{
|
||||
std::map<std::string, nlohmann::json> obj;
|
||||
obj.emplace("description", description);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue