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: I5479733e7f0a81c10fa432538be3f6cf730541f4
diff --git a/item_updater.hpp b/item_updater.hpp
index 4c47c8b..ccacd28 100644
--- a/item_updater.hpp
+++ b/item_updater.hpp
@@ -52,7 +52,9 @@
* @param[in] bus - The D-Bus bus object
*/
ItemUpdater(sdbusplus::bus::bus& bus, const std::string& path) :
- ItemUpdaterInherit(bus, path.c_str(), false), bus(bus), helper(bus),
+ ItemUpdaterInherit(bus, path.c_str(),
+ ItemUpdaterInherit::action::defer_emit),
+ bus(bus), helper(bus),
versionMatch(bus,
MatchRules::interfacesAdded() +
MatchRules::path("/xyz/openbmc_project/software"),