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/version.hpp b/version.hpp
index b6f9172..8f284dd 100644
--- a/version.hpp
+++ b/version.hpp
@@ -85,7 +85,8 @@
const std::string& extVersion, const std::string& filePath,
const std::vector<std::string>& compatibleNames, eraseFunc callback,
const std::string& id) :
- VersionInherit(bus, (objPath).c_str(), true),
+ VersionInherit(bus, (objPath).c_str(),
+ VersionInherit::action::defer_emit),
eraseCallback(callback), id(id), versionStr(versionString)
{
// Set properties.