Skip to content

Commit 36ff4da

Browse files
authored
Replace const pointer with const reference in type functions (#3430)
* Change functions definition * Change return type to object * Change ListType * Change ArrayType * Change StructType * Change MapType * Change UnionType * Fix pytest * Fix rust test
1 parent 2d90889 commit 36ff4da

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src_cpp/node_util.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ Napi::Value Util::ConvertToNapiObject(const Value& value, Napi::Env env) {
196196
}
197197
case LogicalTypeID::STRUCT:
198198
case LogicalTypeID::UNION: {
199-
auto childrenNames = StructType::getFieldNames(dataType);
199+
auto childrenNames = StructType::getFieldNames(*dataType);
200200
auto napiObj = Napi::Object::New(env);
201201
auto size = NestedVal::getChildrenSize(&value);
202202
for (auto i = 0u; i < size; ++i) {

0 commit comments

Comments
 (0)