sdbusplus: remove usage of deprecated alias
The alias `server::match` has been deprecated since 2016. Use the new
alias under bus.
Change-Id: I21baf6b70401d996519b5940d0cd685535475a2f
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/control/triggers.cpp b/control/triggers.cpp
index cb7281c..5847576 100644
--- a/control/triggers.cpp
+++ b/control/triggers.cpp
@@ -28,11 +28,11 @@
// Setup signal matches of the property for event
std::unique_ptr<EventData> eventData =
std::make_unique<EventData>(group, match, handler, actions);
- std::unique_ptr<sdbusplus::server::match::match> mPtr = nullptr;
+ std::unique_ptr<sdbusplus::bus::match_t> mPtr = nullptr;
if (!match.empty())
{
// Subscribe to signal match
- mPtr = std::make_unique<sdbusplus::server::match::match>(
+ mPtr = std::make_unique<sdbusplus::bus::match_t>(
zone.getBus(), match.c_str(),
std::bind(std::mem_fn(&Zone::handleEvent), &zone,
std::placeholders::_1, eventData.get()));