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/scheduled_host_transition.hpp b/scheduled_host_transition.hpp
index 3e24f89..4d917af 100644
--- a/scheduled_host_transition.hpp
+++ b/scheduled_host_transition.hpp
@@ -31,7 +31,8 @@
public:
ScheduledHostTransition(sdbusplus::bus::bus& bus, const char* objPath,
const sdeventplus::Event& event) :
- ScheduledHostTransitionInherit(bus, objPath, true),
+ ScheduledHostTransitionInherit(
+ bus, objPath, ScheduledHostTransition::action::defer_emit),
bus(bus), event(event),
timer(event, std::bind(&ScheduledHostTransition::callback, this))
{