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: I12bac733597177ec85336a204b081779fe6ce19e
diff --git a/snmp_client.cpp b/snmp_client.cpp
index a636971..c084ea4 100644
--- a/snmp_client.cpp
+++ b/snmp_client.cpp
@@ -12,7 +12,7 @@
Client::Client(sdbusplus::bus::bus& bus, const char* objPath,
ConfManager& parent, const std::string& address, uint16_t port) :
- Ifaces(bus, objPath, true),
+ Ifaces(bus, objPath, Ifaces::action::defer_emit),
id(std::stol(std::filesystem::path(objPath).filename())), parent(parent)
{
this->address(address);