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/chassis_state_manager.hpp b/chassis_state_manager.hpp
index 1dc7716..3bd44cd 100644
--- a/chassis_state_manager.hpp
+++ b/chassis_state_manager.hpp
@@ -47,7 +47,8 @@
* @param[in] id - Chassis id
*/
Chassis(sdbusplus::bus::bus& bus, const char* objPath, size_t id) :
- ChassisInherit(bus, objPath, true), bus(bus),
+ ChassisInherit(bus, objPath, ChassisInherit::action::defer_emit),
+ bus(bus),
systemdSignals(
bus,
sdbusRule::type::signal() + sdbusRule::member("JobRemoved") +