Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Yagiz Nizipli <[email protected]>
  • Loading branch information
jasnell and anonrig authored Jan 5, 2025
1 parent 665d0f4 commit cfda580
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/util-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ inline v8::Local<v8::String> OneByteString(v8::Isolate* isolate,
}

inline v8::Local<v8::String> OneByteString(v8::Isolate* isolate,
const std::string_view& str) {
std::string_view str) {
return OneByteString(isolate, str.data(), str.size());
}

Expand Down
2 changes: 1 addition & 1 deletion src/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ inline v8::Local<v8::String> OneByteString(v8::Isolate* isolate,
int length = -1);

inline v8::Local<v8::String> OneByteString(v8::Isolate* isolate,
const std::string_view& str);
std::string_view str);

// Used to be a macro, hence the uppercase name.
template <int N>
Expand Down

0 comments on commit cfda580

Please sign in to comment.