sdbusplus: replace message::variant with std::variant
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: If7afb92f935f8c73e274fa7f7179af567e330678
diff --git a/src/dbus_watch.cpp b/src/dbus_watch.cpp
index f97c33b..ed57b87 100644
--- a/src/dbus_watch.cpp
+++ b/src/dbus_watch.cpp
@@ -126,7 +126,7 @@
void DbusWatcher::hostStateHandler(sdbusplus::message::message& msg)
{
- std::map<std::string, sdbusplus::message::variant<std::string>> properties;
+ std::map<std::string, std::variant<std::string>> properties;
std::string interface;
msg.read(interface, properties);
@@ -138,8 +138,7 @@
const auto itp = properties.find(itc->second.property);
if (itp != properties.end())
{
- const auto& propVal =
- sdbusplus::message::variant_ns::get<std::string>(itp->second);
+ const auto& propVal = std::get<std::string>(itp->second);
needFlush =
itc->second.values.find(propVal) != itc->second.values.end();
}