Skip to content
Snippets Groups Projects
Commit 8a83b9ed authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Changed type of first argument to string_view

parent c4f1fd42
No related branches found
No related tags found
1 merge request!295M214003/develop
......@@ -21,12 +21,7 @@ cdo_cmpstr(const char *x, const char *y)
}
static inline bool
cdo_cmpstr(const std::string &lhs, const std::string &rhs)
{
return (lhs.compare(rhs) == 0);
}
static inline bool
cdo_cmpstr(const std::string_view &lhs, const std::string &rhs)
cdo_cmpstr(std::string_view lhs, const std::string &rhs)
{
return (lhs.compare(rhs) == 0);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment