summaryrefslogtreecommitdiff
path: root/include/openbmc_dbus_rest.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/openbmc_dbus_rest.hpp')
-rw-r--r--include/openbmc_dbus_rest.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/openbmc_dbus_rest.hpp b/include/openbmc_dbus_rest.hpp
index b457935e84..cb5d727a25 100644
--- a/include/openbmc_dbus_rest.hpp
+++ b/include/openbmc_dbus_rest.hpp
@@ -2049,7 +2049,7 @@ inline void handleDBusUrl(const crow::Request& req,
std::string destProperty;
const char* attrSeperator = "/attr/";
size_t attrPosition = objectPath.find(attrSeperator);
- if (attrPosition != objectPath.npos)
+ if (attrPosition != std::string::npos)
{
destProperty = objectPath.substr(attrPosition + strlen(attrSeperator),
objectPath.length());
@@ -2060,7 +2060,7 @@ inline void handleDBusUrl(const crow::Request& req,
{
constexpr const char* actionSeperator = "/action/";
size_t actionPosition = objectPath.find(actionSeperator);
- if (actionPosition != objectPath.npos)
+ if (actionPosition != std::string::npos)
{
std::string postProperty =
objectPath.substr((actionPosition + strlen(actionSeperator)),