Skip to content

Commit cfda580

Browse files
jasnellanonrig
andauthored
Apply suggestions from code review
Co-authored-by: Yagiz Nizipli <[email protected]>
1 parent 665d0f4 commit cfda580

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/util-inl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ inline v8::Local<v8::String> OneByteString(v8::Isolate* isolate,
181181
}
182182

183183
inline v8::Local<v8::String> OneByteString(v8::Isolate* isolate,
184-
const std::string_view& str) {
184+
std::string_view str) {
185185
return OneByteString(isolate, str.data(), str.size());
186186
}
187187

src/util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ inline v8::Local<v8::String> OneByteString(v8::Isolate* isolate,
341341
int length = -1);
342342

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

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

0 commit comments

Comments
 (0)