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/bmc_state_manager.hpp b/bmc_state_manager.hpp
index ee97070..239ad10 100644
--- a/bmc_state_manager.hpp
+++ b/bmc_state_manager.hpp
@@ -34,7 +34,7 @@
* @param[in] objPath - The Dbus object path
*/
BMC(sdbusplus::bus::bus& bus, const char* objPath) :
- BMCInherit(bus, objPath, true), bus(bus),
+ BMCInherit(bus, objPath, BMCInherit::action::defer_emit), bus(bus),
stateSignal(std::make_unique<decltype(stateSignal)::element_type>(
bus,
sdbusRule::type::signal() + sdbusRule::member("JobRemoved") +