From c7ed807801961c2d0bf1984bbd811bbfdced0758 Mon Sep 17 00:00:00 2001 From: Oscar Franco Date: Mon, 16 Dec 2024 08:46:15 +0100 Subject: [PATCH] Get rid of unnecessary move --- cpp/DBHostObject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/DBHostObject.cpp b/cpp/DBHostObject.cpp index f42c578..d95f285 100644 --- a/cpp/DBHostObject.cpp +++ b/cpp/DBHostObject.cpp @@ -291,7 +291,7 @@ void DBHostObject::create_jsi_functions() { auto resolve = std::make_shared(rt, args[0]); auto reject = std::make_shared(rt, args[1]); - auto task = [this, &rt, query, params = std::move(params), resolve, + auto task = [this, &rt, query, params, resolve, reject]() { try { std::vector> results;