summaryrefslogtreecommitdiff
path: root/redfish-core/lib/chassis.hpp
diff options
context:
space:
mode:
authorEd Tanous <ed.tanous@intel.com>2018-11-30 22:35:41 +0300
committerEd Tanous <ed.tanous@intel.com>2018-12-10 23:54:40 +0300
commit1b6b96c570fdf7ca5c643f3d0776581656e78070 (patch)
treed96338cf9f95ea763e4fb6570d83e4d1808d3f41 /redfish-core/lib/chassis.hpp
parent789a6a317b51abba38cf064dd5ee2abd051d02bf (diff)
downloadbmcweb-1b6b96c570fdf7ca5c643f3d0776581656e78070.tar.xz
Remove custom version of getPtr
Now that sdbusplus variant supports std::get_if, we can remove our custom, mapbox namespaced implementation that does the same thing. Change-Id: I854c473003e28e41dd45dba08ca683433f1c1774 Signed-off-by: Ed Tanous <ed.tanous@intel.com>
Diffstat (limited to 'redfish-core/lib/chassis.hpp')
-rw-r--r--redfish-core/lib/chassis.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/redfish-core/lib/chassis.hpp b/redfish-core/lib/chassis.hpp
index 0f2b92b055..0e1cf1b330 100644
--- a/redfish-core/lib/chassis.hpp
+++ b/redfish-core/lib/chassis.hpp
@@ -198,8 +198,8 @@ class Chassis : public Node
&property : propertiesList)
{
const std::string *value =
- mapbox::getPtr<const std::string>(
- property.second);
+ sdbusplus::message::variant_ns::get_if<
+ std::string>(&property.second);
if (value != nullptr)
{
asyncResp->res.jsonValue[property.first] =