aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/config.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/libutil/config.hh')
-rw-r--r--src/libutil/config.hh10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/libutil/config.hh b/src/libutil/config.hh
index 18fa9dea8..1f5f4e7b9 100644
--- a/src/libutil/config.hh
+++ b/src/libutil/config.hh
@@ -4,7 +4,7 @@
#include "types.hh"
-#include <nlohmann/json.hpp>
+#include <nlohmann/json_fwd.hpp>
#pragma once
@@ -255,13 +255,7 @@ public:
void convertToArg(Args & args, const std::string & category) override;
- std::map<std::string, nlohmann::json> toJSONObject() override
- {
- auto obj = AbstractSetting::toJSONObject();
- obj.emplace("value", value);
- obj.emplace("defaultValue", defaultValue);
- return obj;
- }
+ std::map<std::string, nlohmann::json> toJSONObject() override;
};
template<typename T>