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: I21f8e8d8e988ee29933b544fd4ffd8bf0fe3963c
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/log_manager.hpp b/log_manager.hpp
index 6dbd29c..4863ad5 100644
--- a/log_manager.hpp
+++ b/log_manager.hpp
@@ -363,8 +363,10 @@
*/
Manager(sdbusplus::bus::bus& bus, const std::string& path,
internal::Manager& manager) :
- details::ServerObject<DeleteAllIface, CreateIface>(bus, path.c_str(),
- true),
+ details::ServerObject<DeleteAllIface, CreateIface>(
+ bus, path.c_str(),
+ details::ServerObject<DeleteAllIface,
+ CreateIface>::action::defer_emit),
manager(manager){};
/** @brief Delete all d-bus objects.