Skip to content

Commit 1eceaf7

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

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
@@ -23,6 +23,7 @@
2323
namespace node {
2424
namespace sqlite {
2525

26+
using std::in_place_type;
2627
using v8::Array;
2728
using v8::ArrayBuffer;
2829
using v8::BackingStoreInitializationMode;
@@ -3868,7 +3869,6 @@ struct bind_value {
38683869
};
38693870

38703871
literal FromColumn(sqlite3* db, sqlite3_stmt* stmt, int col_index) {
3871-
using std::in_place_type;
38723872
int type = sqlite3_column_type(stmt, col_index);
38733873
switch (type) {
38743874
case SQLITE_NULL:
@@ -3972,7 +3972,6 @@ struct to_v8_value {
39723972
};
39733973

39743974
Maybe<transfer::literal> ToLiteral(Isolate* isolate, Local<Value> value) {
3975-
using std::in_place_type;
39763975
if (value->IsNumber()) {
39773976
return v8::Just(literal{in_place_type<real>, value.As<Number>()->Value()});
39783977
} else if (value->IsString()) {
@@ -4000,7 +3999,6 @@ Maybe<transfer::literal> ToLiteral(Isolate* isolate, Local<Value> value) {
40003999
}
40014000
}
40024001
Maybe<transfer::value> ToValue(Isolate* isolate, Local<Object> object) {
4003-
using std::in_place_type;
40044002
Local<Array> property_names;
40054003
if (!object->GetOwnPropertyNames(isolate->GetCurrentContext())
40064004
.ToLocal(&property_names)) [[unlikely]] {
@@ -4033,7 +4031,6 @@ Maybe<transfer::value> ToValue(Isolate* isolate, Local<Object> object) {
40334031
return v8::Just(value{in_place_type<decltype(map)>, std::move(map)});
40344032
}
40354033
Maybe<transfer::value> ToValue(Isolate* isolate, Local<Array> array) {
4036-
using std::in_place_type;
40374034
const uint32_t length = array->Length();
40384035
Local<Context> context = isolate->GetCurrentContext();
40394036
std::pmr::vector<literal> vec;

0 commit comments

Comments
 (0)