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: I5cfac1360e8c769889b33bef98cfd44778018a44
diff --git a/host_state_manager.hpp b/host_state_manager.hpp
index 1e9bb10..6b9d687 100644
--- a/host_state_manager.hpp
+++ b/host_state_manager.hpp
@@ -54,7 +54,7 @@
* @param[in] id - The Host id
*/
Host(sdbusplus::bus::bus& bus, const char* objPath, size_t id) :
- HostInherit(bus, objPath, true), bus(bus),
+ HostInherit(bus, objPath, HostInherit::action::defer_emit), bus(bus),
systemdSignalJobRemoved(
bus,
sdbusRule::type::signal() + sdbusRule::member("JobRemoved") +