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: I7b9c5e7548be323b7b63da1cf5b5cdcc82c7d109
diff --git a/control/zone.cpp b/control/zone.cpp
index 49ee35c..bcecb08 100644
--- a/control/zone.cpp
+++ b/control/zone.cpp
@@ -49,7 +49,7 @@
Zone::Zone(Mode mode, sdbusplus::bus::bus& bus, const std::string& path,
const sdeventplus::Event& event, const ZoneDefinition& def) :
- ThermalObject(bus, path.c_str(), true),
+ ThermalObject(bus, path.c_str(), ThermalObject::action::defer_emit),
_bus(bus), _path(path),
_ifaces({"xyz.openbmc_project.Control.ThermalMode"}),
_fullSpeed(std::get<fullSpeedPos>(def)),