sdbusplus: object: don't use 'bool' argument constructor
`sdbusplus::server::object_t` has long had an enum-based parameter for
signal action, but maintained a backwards compatible boolean mapping.
It is time to remove this boolean to make it more observable which
actions are being used in applications. Map all `true` occurrences to
`action::defer_emit`.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I6de31883b9f6a9a3115ae232575dffbdf652e0bd
diff --git a/user_mgr.cpp b/user_mgr.cpp
index 8fc899f..a5a3f7b 100644
--- a/user_mgr.cpp
+++ b/user_mgr.cpp
@@ -1176,7 +1176,7 @@
}
UserMgr::UserMgr(sdbusplus::bus::bus& bus, const char* path) :
- Ifaces(bus, path, true), bus(bus), path(path)
+ Ifaces(bus, path, Ifaces::action::defer_emit), bus(bus), path(path)
{
UserMgrIface::allPrivileges(privMgr);
std::sort(groupsMgr.begin(), groupsMgr.end());