From 7f7cc8865ce231007e08bb18bfe6d926bbd54e9e Mon Sep 17 00:00:00 2001 From: Kevin Gurney Date: Mon, 20 May 2024 11:36:26 -0400 Subject: [PATCH] Fix C++ linting issues. --- matlab/src/cpp/arrow/matlab/array/proxy/array.cc | 3 +-- matlab/src/cpp/arrow/matlab/c/proxy/array_importer.cc | 6 ++---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/matlab/src/cpp/arrow/matlab/array/proxy/array.cc b/matlab/src/cpp/arrow/matlab/array/proxy/array.cc index f77ba56df120b..1eb6de74fec65 100644 --- a/matlab/src/cpp/arrow/matlab/array/proxy/array.cc +++ b/matlab/src/cpp/arrow/matlab/array/proxy/array.cc @@ -187,8 +187,7 @@ void Array::exportToC(libmexclass::proxy::method::Context& context) { const mda::TypedArray array_address_mda = opts[0]["ArrowArrayAddress"]; const mda::TypedArray schema_address_mda = opts[0]["ArrowSchemaAddress"]; - auto arrow_array = - reinterpret_cast(uint64_t(array_address_mda[0])); + auto arrow_array = reinterpret_cast(uint64_t(array_address_mda[0])); auto arrow_schema = reinterpret_cast(uint64_t(schema_address_mda[0])); diff --git a/matlab/src/cpp/arrow/matlab/c/proxy/array_importer.cc b/matlab/src/cpp/arrow/matlab/c/proxy/array_importer.cc index 060aa717d06a1..b6f68332d1757 100644 --- a/matlab/src/cpp/arrow/matlab/c/proxy/array_importer.cc +++ b/matlab/src/cpp/arrow/matlab/c/proxy/array_importer.cc @@ -45,10 +45,8 @@ void ArrayImporter::import(libmexclass::proxy::method::Context& context) { const auto arrow_array_address = uint64_t(arrow_array_address_mda[0]); const auto arrow_schema_address = uint64_t(arrow_schema_address_mda[0]); - auto arrow_array = - reinterpret_cast(arrow_array_address); - auto arrow_schema = - reinterpret_cast(arrow_schema_address); + auto arrow_array = reinterpret_cast(arrow_array_address); + auto arrow_schema = reinterpret_cast(arrow_schema_address); MATLAB_ASSIGN_OR_ERROR_WITH_CONTEXT(auto array, arrow::ImportArray(arrow_array, arrow_schema),