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: I94aa9a4451cebc772d3259323ff1b679e53f90bb
diff --git a/sensors/host.hpp b/sensors/host.hpp
index 5c70526..bf935b7 100644
--- a/sensors/host.hpp
+++ b/sensors/host.hpp
@@ -48,7 +48,9 @@
HostSensor(const std::string& name, int64_t timeout,
sdbusplus::bus::bus& bus, const char* objPath, bool defer) :
Sensor(name, timeout),
- ValueObject(bus, objPath, defer)
+ ValueObject(bus, objPath,
+ defer ? ValueObject::action::defer_emit
+ : ValueObject::action::emit_object_added)
{}
ValueType value(ValueType value) override;