sdbusplus: remove deprecated variant_ns
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I62deb24e0fc9784289124cc0fc8a6db2de5d6b98
diff --git a/item_updater.cpp b/item_updater.cpp
index 882acbb..32e046c 100644
--- a/item_updater.cpp
+++ b/item_updater.cpp
@@ -25,7 +25,6 @@
using SVersion = server::Version;
using VersionPurpose = SVersion::VersionPurpose;
namespace msg = sdbusplus::message;
- namespace variant_ns = msg::variant_ns;
sdbusplus::message::object_path objPath;
std::map<std::string, std::map<std::string, msg::variant<std::string>>>
@@ -47,7 +46,7 @@
{
// Only process the Host and System images
auto value = SVersion::convertVersionPurposeFromString(
- variant_ns::get<std::string>(property.second));
+ std::get<std::string>(property.second));
if (value == VersionPurpose::Host ||
value == VersionPurpose::System)
@@ -57,7 +56,7 @@
}
else if (property.first == "Version")
{
- version = variant_ns::get<std::string>(property.second);
+ version = std::get<std::string>(property.second);
}
}
}
@@ -67,7 +66,7 @@
{
if (property.first == "Path")
{
- filePath = variant_ns::get<std::string>(property.second);
+ filePath = std::get<std::string>(property.second);
}
}
}
@@ -244,8 +243,7 @@
{
auto response = bus.call(method);
response.read(currentChassisState);
- auto strParam = sdbusplus::message::variant_ns::get<std::string>(
- currentChassisState);
+ auto strParam = std::get<std::string>(currentChassisState);
return (strParam != CHASSIS_STATE_OFF);
}
catch (const sdbusplus::exception::SdBusError& e)