UI: Use const ref for get_service_from_json()
parent
22ffc04f73
commit
050a29da1a
|
@ -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) {
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue