Passing by value the string_view
This commit is contained in:
parent
a6cbf1f922
commit
bf03d77ab9
|
@ -26,7 +26,7 @@ WARN_UNUSED bool validate_utf8(const char * buf, size_t len) noexcept;
|
|||
* @param p the string_view to validate.
|
||||
* @return true if the string is valid UTF-8.
|
||||
*/
|
||||
really_inline WARN_UNUSED bool validate_utf8(const std::string_view& p) noexcept {
|
||||
really_inline WARN_UNUSED bool validate_utf8(const std::string_view p) noexcept {
|
||||
return validate_utf8(p.data(), p.size());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue