From 9b4b5867f4ee0803cd6731c68d2bea7dde57d047 Mon Sep 17 00:00:00 2001 From: Michael Dawson Date: Tue, 21 Nov 2023 22:59:36 +0000 Subject: [PATCH] src: fix coverity warning - reduce copying by using std::move Signed-off-by: Michael Dawson --- 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,