File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3437,14 +3437,14 @@ static void CpSyncCopyDir(const FunctionCallbackInfo<Value>& args) {
34373437 if (args[7 ]->IsFunction ()) {
34383438 Local<v8::Function> args_filter_fn = args[7 ].As <v8::Function>();
34393439
3440- filter_fn = [env, args_filter_fn](std::string src,
3441- std::string dest) -> bool {
3440+ filter_fn = [env, args_filter_fn](std::string_view src,
3441+ std::string_view dest) -> bool {
34423442 Local<Value> argv[] = {
34433443 String::NewFromUtf8 (
3444- env->isolate (), src.c_str (), v8::NewStringType::kNormal )
3444+ env->isolate (), src.data (), v8::NewStringType::kNormal )
34453445 .ToLocalChecked (),
34463446 String::NewFromUtf8 (
3447- env->isolate (), dest.c_str (), v8::NewStringType::kNormal )
3447+ env->isolate (), dest.data (), v8::NewStringType::kNormal )
34483448 .ToLocalChecked ()};
34493449 auto result =
34503450 args_filter_fn->Call (env->context (), Null (env->isolate ()), 2 , argv)
You can’t perform that action at this time.
0 commit comments