Skip to content

Commit 881cebb

Browse files
author
Mariusz Pasinski
committed
fix: change param types of startsWith to string_views
1 parent cf463f9 commit 881cebb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/host/cpp/CxxNodeApiHostModule.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ using namespace facebook;
1111

1212
namespace {
1313

14-
bool startsWith(const std::string &str, const std::string &prefix) {
14+
bool startsWith(const std::string_view &str, const std::string_view &prefix) {
1515
#if __cplusplus >= 202002L // __cpp_lib_starts_ends_with
1616
return str.starts_with(prefix);
1717
#else

0 commit comments

Comments
 (0)