diff --git a/UI/streaming-helpers.cpp b/UI/streaming-helpers.cpp index 14219399b..763f9d233 100644 --- a/UI/streaming-helpers.cpp +++ b/UI/streaming-helpers.cpp @@ -56,7 +56,7 @@ Json get_services_json() return root; } -Json get_service_from_json(Json &root, const char *name) +Json get_service_from_json(const Json &root, const char *name) { auto &services = root["services"].array_items(); for (const Json &service : services) { diff --git a/UI/streaming-helpers.hpp b/UI/streaming-helpers.hpp index c545c1d11..170ef3282 100644 --- a/UI/streaming-helpers.hpp +++ b/UI/streaming-helpers.hpp @@ -8,7 +8,8 @@ #include extern json11::Json get_services_json(); -extern json11::Json get_service_from_json(json11::Json &root, const char *name); +extern json11::Json get_service_from_json(const json11::Json &root, + const char *name); enum class ListOpt : int { ShowAll = 1,