You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by bk...@apache.org on 2022/11/30 14:50:50 UTC
[arrow] 06/15: fix formatting
This is an automated email from the ASF dual-hosted git repository.
bkietz pushed a commit to branch feature/format-string-view
in repository https://gitbox.apache.org/repos/asf/arrow.git
commit 864a74c81f187c597ad9517030b6187769b397f3
Author: Tobias Zagorni <to...@zagorni.eu>
AuthorDate: Tue Oct 18 17:24:45 2022 +0200
fix formatting
---
cpp/src/arrow/visit_data_inline.h | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/cpp/src/arrow/visit_data_inline.h b/cpp/src/arrow/visit_data_inline.h
index b6996d188c..3058b8501b 100644
--- a/cpp/src/arrow/visit_data_inline.h
+++ b/cpp/src/arrow/visit_data_inline.h
@@ -176,12 +176,10 @@ struct ArraySpanInlineVisitor<T, enable_if_binary_view_like<T>> {
}
return VisitBitBlocks(
arr.buffers[0].data, arr.offset, arr.length,
- [&](int64_t (index)) {
+ [&](int64_t(index)) {
return valid_func(static_cast<std::string_view>(headers[index]));
},
- [&]() {
- return null_func();
- });
+ [&]() { return null_func(); });
}
template <typename ValidFunc, typename NullFunc>
@@ -201,7 +199,7 @@ struct ArraySpanInlineVisitor<T, enable_if_binary_view_like<T>> {
VisitBitBlocksVoid(
arr.buffers[0].data, arr.offset, arr.length,
- [&](int64_t (index)) {
+ [&](int64_t(index)) {
valid_func(static_cast<std::string_view>(headers[index]));
},
std::forward<NullFunc>(null_func));