Skip to content

Commit

Permalink
src: fix coverity warning
Browse files Browse the repository at this point in the history
- 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>
  • Loading branch information
mhdawson authored and RafaelGSS committed Nov 27, 2023
1 parent 7ee42ae commit 9c56ca9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_contextify.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1472,7 +1472,7 @@ void ContextifyContext::ContainsModuleSyntax(
ContextifyContext::CompileFunctionAndCacheResult(env,
context,
&source,
params,
std::move(params),
std::vector<Local<Object>>(),
options,
true,
Expand Down

0 comments on commit 9c56ca9

Please sign in to comment.