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: I7adbc8df11fa75f33f7d3437ea5ceae4ea6ca9d2
diff --git a/manager.cpp b/manager.cpp
index aa8d5e0..4c8e4a0 100644
--- a/manager.cpp
+++ b/manager.cpp
@@ -164,7 +164,8 @@
{
auto values = policy::find(policies, properties);
- auto object = std::make_shared<PolicyObject>(bus, objectPath.c_str(), true);
+ auto object = std::make_shared<PolicyObject>(
+ bus, objectPath.c_str(), PolicyObject::action::defer_emit);
object->eventID(std::get<policy::EIDField>(values));
object->description(std::get<policy::MsgField>(values));