aboutsummaryrefslogtreecommitdiffstats
path: root/lib/RemoteControl.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2023-07-20 13:06:22 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2023-07-20 13:06:22 +0200
commit595606ca4ed3011af19c6d8a9f95519d84320120 (patch)
tree1f816921f27cce2e98ba7b61da7b68f1c269dd19 /lib/RemoteControl.cpp
parent2de7bab3cf1c7757078a113b35e927ecbccc5e3d (diff)
downloaddabmod-595606ca4ed3011af19c6d8a9f95519d84320120.tar.gz
dabmod-595606ca4ed3011af19c6d8a9f95519d84320120.tar.bz2
dabmod-595606ca4ed3011af19c6d8a9f95519d84320120.zip
Rework Json so that it works with map that doesn't support incomplete types
Diffstat (limited to 'lib/RemoteControl.cpp')
-rw-r--r--lib/RemoteControl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/RemoteControl.cpp b/lib/RemoteControl.cpp
index fbe0662..dca3373 100644
--- a/lib/RemoteControl.cpp
+++ b/lib/RemoteControl.cpp
@@ -109,7 +109,8 @@ std::list< std::vector<std::string> > RemoteControllers::get_param_list_values(c
std::string RemoteControllers::get_showjson() {
json::map_t root;
for (auto &controllable : rcs.controllables) {
- root[controllable->get_rc_name()].v = controllable->get_all_values();
+ root[controllable->get_rc_name()].v =
+ std::make_shared<json::map_t>(controllable->get_all_values());
}
return json::map_to_json(root);