From d204539bb33f78cb7ba154fbc8c76405e587580f Mon Sep 17 00:00:00 2001 From: Oscar Franco Date: Sun, 1 Dec 2024 12:06:24 +0100 Subject: [PATCH] Revert emplace back on utils --- cpp/utils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/utils.cpp b/cpp/utils.cpp index a2ba13e..76c7550 100644 --- a/cpp/utils.cpp +++ b/cpp/utils.cpp @@ -235,12 +235,12 @@ void to_batch_arguments(jsi::Runtime &rt, jsi::Array const &batchParams, const jsi::Value &p = batchUpdateParams.getValueAtIndex(rt, x); auto params = std::make_shared>(to_variant_vec(rt, p)); - commands->emplace_back(query, params); + commands->push_back({query, params}); } } else { auto params = std::make_shared>( to_variant_vec(rt, commandParams)); - commands->emplace_back(query, params); + commands->push_back({query, params}); } } }