diff --git a/cpp/src/arrow/array/array_nested.cc b/cpp/src/arrow/array/array_nested.cc index 5e22cae480a48..d8308c824953a 100644 --- a/cpp/src/arrow/array/array_nested.cc +++ b/cpp/src/arrow/array/array_nested.cc @@ -636,11 +636,11 @@ Status StructArray::CanReferenceFieldByName(const std::string& name) const { } Status StructArray::CanReferenceFieldsByNames( - const std::vector& names) const { - for (const auto& name: names) { - ARROW_RETURN_NOT_OK(CanReferenceFieldByName(name)); - } - return Status::OK(); + const std::vector& names) const { + for (const auto& name : names) { + ARROW_RETURN_NOT_OK(CanReferenceFieldByName(name)); + } + return Status::OK(); } Result StructArray::Flatten(MemoryPool* pool) const {