Skip to content

Commit ba56d6f

Browse files
mhdawsonUlisesGascon
authored andcommitted
src: fix coverity warning
- reduce copying by using std::move Signed-off-by: Michael Dawson <midawson@redhat.com> PR-URL: #50846 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent e91615b commit ba56d6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_contextify.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1473,7 +1473,7 @@ void ContextifyContext::ContainsModuleSyntax(
14731473
ContextifyContext::CompileFunctionAndCacheResult(env,
14741474
context,
14751475
&source,
1476-
params,
1476+
std::move(params),
14771477
std::vector<Local<Object>>(),
14781478
options,
14791479
true,

0 commit comments

Comments
 (0)