File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -86,8 +86,8 @@ Napi::Value Util::ConvertToNapiObject(const Value& value, Napi::Env env) {
8686 if (value.isNull ()) {
8787 return env.Null ();
8888 }
89- auto dataType = value.getDataType ();
90- auto dataTypeID = dataType-> getLogicalTypeID ();
89+ const auto & dataType = value.getDataType ();
90+ auto dataTypeID = dataType. getLogicalTypeID ();
9191 switch (dataTypeID) {
9292 case LogicalTypeID::BOOL: {
9393 return Napi::Boolean::New (env, value.getValue <bool >());
@@ -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) {
@@ -271,7 +271,7 @@ Napi::Value Util::ConvertToNapiObject(const Value& value, Napi::Env env) {
271271 return ConvertRdfVariantToNapiObject (value, env);
272272 }
273273 default :
274- throw Exception (" Unsupported type: " + dataType-> toString ());
274+ throw Exception (" Unsupported type: " + dataType. toString ());
275275 }
276276 return Napi::Value ();
277277}
You can’t perform that action at this time.
0 commit comments