UI: Use const ref for get_service_from_json()

master
jp9000 2022-04-18 17:46:07 -07:00
parent 22ffc04f73
commit 050a29da1a
2 changed files with 3 additions and 2 deletions

View File

@ -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) {

View File

@ -8,7 +8,8 @@
#include <json11.hpp>
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,