Skip to content

Commit cf463f9

Browse files
author
Mariusz Pasinski
committed
fixup: fix types in endsWith (use string_views)
1 parent 0a5b446 commit cf463f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/host/cpp/AddonRegistry.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ napi_status napi_emplace_named_property_object(napi_env env,
3030
return status;
3131
}
3232

33-
bool endsWith(const std::string &str, const std::string &suffix) {
33+
bool endsWith(const std::string_view &str, const std::string_view &suffix) {
3434
#if __cplusplus >= 202002L // __cpp_lib_starts_ends_with
3535
return str.ends_with(suffix);
3636
#else

0 commit comments

Comments
 (0)