Skip to content

Commit 6dbf678

Browse files
authored
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 cf45a62 commit 6dbf678

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)