mirror of
https://github.com/NixOS/nix
synced 2025-06-27 21:01:16 +02:00
Make toJSONObject const
This commit is contained in:
parent
ad385f9ec4
commit
f404e9b3b3
3 changed files with 4 additions and 4 deletions
|
@ -213,7 +213,7 @@ protected:
|
|||
|
||||
nlohmann::json toJSON();
|
||||
|
||||
virtual std::map<std::string, nlohmann::json> toJSONObject();
|
||||
virtual std::map<std::string, nlohmann::json> toJSONObject() const;
|
||||
|
||||
virtual void convertToArg(Args & args, const std::string & category);
|
||||
|
||||
|
@ -306,7 +306,7 @@ public:
|
|||
|
||||
void convertToArg(Args & args, const std::string & category) override;
|
||||
|
||||
std::map<std::string, nlohmann::json> toJSONObject() override;
|
||||
std::map<std::string, nlohmann::json> toJSONObject() const override;
|
||||
};
|
||||
|
||||
template<typename T>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue