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: I54c31e5892def4ae3ed7898ebd5d04c3c91e1a49
diff --git a/control/json/dbus_zone.cpp b/control/json/dbus_zone.cpp
index d4b6d23..9f8c77d 100644
--- a/control/json/dbus_zone.cpp
+++ b/control/json/dbus_zone.cpp
@@ -39,7 +39,7 @@
DBusZone::DBusZone(const Zone& zone) :
ThermalModeIntf(util::SDBusPlus::getBus(),
(fs::path{CONTROL_OBJPATH} /= zone.getName()).c_str(),
- true),
+ ThermalModeIntf::action::defer_emit),
_zone(zone)
{}