Pass char* to mapper GetObject
Now that openbmc/openbmc#1025 is fixed, mapper's GetObject method can be
provided char* type arguments. Previously they had to be converted to
std::string to work around bug 1025.
Resolves openbmc/openbmc#1131.
Change-Id: I3f8a8809a17e866044959989d49ca32e16a8021c
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
diff --git a/types.hpp b/types.hpp
index e8350f6..4e30208 100644
--- a/types.hpp
+++ b/types.hpp
@@ -32,8 +32,8 @@
using ObjectMap = std::map<Object, InterfaceMap>;
using namespace std::string_literals;
-static const auto pimPath = "/xyz/openbmc_project/inventory"s;
-static const auto pimIntf = "xyz.openbmc_project.Inventory.Manager"s;
+constexpr auto pimPath = "/xyz/openbmc_project/inventory";
+constexpr auto pimIntf = "xyz.openbmc_project.Inventory.Manager";
} // namespace inventory