From fd9195d750ff990724a9a5bfb7b983bbef7511db Mon Sep 17 00:00:00 2001 From: Michael Dawson Date: Fri, 24 Nov 2023 12:39:39 -0500 Subject: [PATCH] src: fix coverity warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - reduce copying by using std::move Signed-off-by: Michael Dawson PR-URL: https://github.com/nodejs/node/pull/50846 Reviewed-By: Tobias Nießen Reviewed-By: Marco Ippolito Reviewed-By: James M Snell Reviewed-By: Luigi Pinca --- src/node_contextify.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_contextify.cc b/src/node_contextify.cc index 8b27b000f7da06..ec0f68671301d0 100644 --- a/src/node_contextify.cc +++ b/src/node_contextify.cc @@ -1472,7 +1472,7 @@ void ContextifyContext::ContainsModuleSyntax( ContextifyContext::CompileFunctionAndCacheResult(env, context, &source, - params, + std::move(params), std::vector>(), options, true,