Skip to content

Commit 5769f5c

Browse files
committed
Use get_raw function
1 parent 6c20d3c commit 5769f5c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

c_glib/arrow-glib/compute.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10652,8 +10652,7 @@ garrow_make_struct_options_add_field(GArrowMakeStructOptions *options,
1065210652
gboolean nullability,
1065310653
GHashTable *metadata)
1065410654
{
10655-
auto arrow_options = static_cast<arrow::compute::MakeStructOptions *>(
10656-
garrow_function_options_get_raw(GARROW_FUNCTION_OPTIONS(options)));
10655+
auto arrow_options = garrow_make_struct_options_get_raw(options);
1065710656
arrow_options->field_names.emplace_back(name);
1065810657
arrow_options->field_nullability.push_back(nullability != FALSE);
1065910658
if (metadata) {
@@ -12114,8 +12113,7 @@ garrow_make_struct_options_new_raw(const arrow::compute::MakeStructOptions *arro
1211412113
{
1211512114
auto options =
1211612115
GARROW_MAKE_STRUCT_OPTIONS(g_object_new(GARROW_TYPE_MAKE_STRUCT_OPTIONS, nullptr));
12117-
auto arrow_new_options = static_cast<arrow::compute::MakeStructOptions *>(
12118-
garrow_function_options_get_raw(GARROW_FUNCTION_OPTIONS(options)));
12116+
auto arrow_new_options = garrow_make_struct_options_get_raw(options);
1211912117
*arrow_new_options = *arrow_options;
1212012118
return options;
1212112119
}

0 commit comments

Comments
 (0)