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`.
Change-Id: I2e7ce5e279d65d101e1249f2b41f126143d3f03d
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/src/neighbor.cpp b/src/neighbor.cpp
index 11b0666..c1f8fac 100644
--- a/src/neighbor.cpp
+++ b/src/neighbor.cpp
@@ -88,7 +88,7 @@
Neighbor::Neighbor(sdbusplus::bus::bus& bus, const char* objPath,
EthernetInterface& parent, const std::string& ipAddress,
const std::string& macAddress, State state) :
- NeighborObj(bus, objPath, true),
+ NeighborObj(bus, objPath, NeighborObj::action::defer_emit),
parent(parent)
{
this->ipAddress(ipAddress);