Skip to content

Commit fd9195d

Browse files
mhdawsonRafaelGSS
authored andcommitted
src: fix coverity warning
- reduce copying by using std::move Signed-off-by: Michael Dawson <[email protected]> PR-URL: #50846 Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Marco Ippolito <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 5811a59 commit fd9195d

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
@@ -1472,7 +1472,7 @@ void ContextifyContext::ContainsModuleSyntax(
14721472
ContextifyContext::CompileFunctionAndCacheResult(env,
14731473
context,
14741474
&source,
1475-
params,
1475+
std::move(params),
14761476
std::vector<Local<Object>>(),
14771477
options,
14781478
true,

0 commit comments

Comments
 (0)