Skip to content

Commit bf03d77

Browse files
author
Daniel Lemire
committed
Passing by value the string_view
1 parent a6cbf1f commit bf03d77

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/simdjson/implementation.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ WARN_UNUSED bool validate_utf8(const char * buf, size_t len) noexcept;
2626
* @param p the string_view to validate.
2727
* @return true if the string is valid UTF-8.
2828
*/
29-
really_inline WARN_UNUSED bool validate_utf8(const std::string_view& p) noexcept {
29+
really_inline WARN_UNUSED bool validate_utf8(const std::string_view p) noexcept {
3030
return validate_utf8(p.data(), p.size());
3131
}
3232

0 commit comments

Comments
 (0)