Skip to content

Commit ad96130

Browse files
sqlite: remove function-local using-statements
The linter doesn't seem to like these. Is it a linter bug?
1 parent 4fb7b3e commit ad96130

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/node_sqlite.cc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
namespace node {
2121
namespace sqlite {
2222

23+
using std::in_place_type;
2324
using v8::Array;
2425
using v8::ArrayBuffer;
2526
using v8::BackingStoreInitializationMode;
@@ -3598,7 +3599,6 @@ struct bind_value {
35983599
};
35993600

36003601
literal FromColumn(sqlite3* db, sqlite3_stmt* stmt, int col_index) {
3601-
using std::in_place_type;
36023602
int type = sqlite3_column_type(stmt, col_index);
36033603
switch (type) {
36043604
case SQLITE_NULL:
@@ -3702,7 +3702,6 @@ struct to_v8_value {
37023702
};
37033703

37043704
Maybe<transfer::literal> ToLiteral(Isolate* isolate, Local<Value> value) {
3705-
using std::in_place_type;
37063705
if (value->IsNumber()) {
37073706
return v8::Just(literal{in_place_type<real>, value.As<Number>()->Value()});
37083707
} else if (value->IsString()) {
@@ -3730,7 +3729,6 @@ Maybe<transfer::literal> ToLiteral(Isolate* isolate, Local<Value> value) {
37303729
}
37313730
}
37323731
Maybe<transfer::value> ToValue(Isolate* isolate, Local<Object> object) {
3733-
using std::in_place_type;
37343732
Local<Array> property_names;
37353733
if (!object->GetOwnPropertyNames(isolate->GetCurrentContext())
37363734
.ToLocal(&property_names)) [[unlikely]] {
@@ -3763,7 +3761,6 @@ Maybe<transfer::value> ToValue(Isolate* isolate, Local<Object> object) {
37633761
return v8::Just(value{in_place_type<decltype(map)>, std::move(map)});
37643762
}
37653763
Maybe<transfer::value> ToValue(Isolate* isolate, Local<Array> array) {
3766-
using std::in_place_type;
37673764
const uint32_t length = array->Length();
37683765
Local<Context> context = isolate->GetCurrentContext();
37693766
std::pmr::vector<literal> vec;

0 commit comments

Comments
 (0)