sdbusplus: replace message::variant with std::variant
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ic20750595d8dd63b9b9c8a5d8012f6166796a64c
diff --git a/inc/post_code.hpp b/inc/post_code.hpp
index f461798..5541de4 100644
--- a/inc/post_code.hpp
+++ b/inc/post_code.hpp
@@ -73,8 +73,7 @@
sdbusplus::bus::match::rules::interface(PropertiesIntf),
[this](sdbusplus::message::message &msg) {
std::string objectName;
- std::map<std::string, sdbusplus::message::variant<uint64_t>>
- msgData;
+ std::map<std::string, std::variant<uint64_t>> msgData;
msg.read(objectName, msgData);
// Check if it was the Value property that changed.
auto valPropMap = msgData.find("Value");
@@ -94,8 +93,7 @@
sdbusplus::bus::match::rules::interface(PropertiesIntf),
[this](sdbusplus::message::message &msg) {
std::string objectName;
- std::map<std::string, sdbusplus::message::variant<std::string>>
- msgData;
+ std::map<std::string, std::variant<std::string>> msgData;
msg.read(objectName, msgData);
// Check if it was the Value property that changed.
auto valPropMap = msgData.find("CurrentHostState");