From 092a28c38383074589e763f7cc5df7f41e710f0f Mon Sep 17 00:00:00 2001 From: Bart Louwers Date: Sun, 17 Nov 2024 03:09:00 +0100 Subject: [PATCH] sqlite: simplify string conversion --- src/node_sqlite.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_sqlite.cc b/src/node_sqlite.cc index 1b57e2a70ac4fb..f0b424df6ab23f 100644 --- a/src/node_sqlite.cc +++ b/src/node_sqlite.cc @@ -369,7 +369,7 @@ void DatabaseSync::CreateSession(const FunctionCallbackInfo& args) { if (table_value->IsString()) { String::Utf8Value str(env->isolate(), table_value); - table = std::string(*str); + table = *str; } else { THROW_ERR_INVALID_ARG_TYPE( env->isolate(), "The \"options.table\" argument must be a string.");