Passing by value the string_view

This commit is contained in:
Daniel Lemire 2020-06-22 16:28:35 -04:00
parent a6cbf1f922
commit bf03d77ab9
1 changed files with 1 additions and 1 deletions

View File

@ -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());
}