diff options
author | Patrick Williams <patrick@stwcx.xyz> | 2020-05-13 19:24:20 +0300 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2020-05-14 06:15:18 +0300 |
commit | 8d78b7a9f5fbca338a5867d5dd4fa83890d79bc7 (patch) | |
tree | 77e2703f7fbb6a5f5db4001fc0d02d9802557bde /redfish-core/lib/network_protocol.hpp | |
parent | 156d6b00a9dc06ac9f618ecd8d5fc6b1b49d5be4 (diff) | |
download | bmcweb-8d78b7a9f5fbca338a5867d5dd4fa83890d79bc7.tar.xz |
sdbusplus: remove deprecated variant_ns
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I86e11299512704fa1df1e5f6517ea25cc6eced8f
Diffstat (limited to 'redfish-core/lib/network_protocol.hpp')
-rw-r--r-- | redfish-core/lib/network_protocol.hpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/redfish-core/lib/network_protocol.hpp b/redfish-core/lib/network_protocol.hpp index d3d9580f7e..a2ae1ea0f5 100644 --- a/redfish-core/lib/network_protocol.hpp +++ b/redfish-core/lib/network_protocol.hpp @@ -76,8 +76,7 @@ inline void if (propertyPair.first == "NTPServers") { const std::vector<std::string>* ntpServers = - sdbusplus::message::variant_ns::get_if< - std::vector<std::string>>( + std::get_if<std::vector<std::string>>( &propertyPair.second); if (ntpServers != nullptr) { @@ -87,8 +86,7 @@ inline void else if (propertyPair.first == "DomainName") { const std::vector<std::string>* domainNames = - sdbusplus::message::variant_ns::get_if< - std::vector<std::string>>( + std::get_if<std::vector<std::string>>( &propertyPair.second); if (domainNames != nullptr) { |