control: Switch to using static instance of bus
Update main to use the static reference of the bus from
util::SDBusPlus.getBus() and have each object that needs the bus call
that same util::SDBusPlus.getBus() function to retrieve the same static
reference.
Change-Id: Icd5a0e61819bf1bec8b46daae05443fdcc542b05
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
diff --git a/control/json/group.cpp b/control/json/group.cpp
index 01390b1..3b7f990 100644
--- a/control/json/group.cpp
+++ b/control/json/group.cpp
@@ -24,8 +24,7 @@
using json = nlohmann::json;
using namespace phosphor::logging;
-Group::Group(const json& jsonObj, sdbusplus::bus::bus&) :
- ConfigBase(jsonObj), _service("")
+Group::Group(const json& jsonObj) : ConfigBase(jsonObj), _service("")
{
setMembers(jsonObj);
// Setting the group's service name is optional