Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

Commit

Permalink
pass by ref in builder
Browse files Browse the repository at this point in the history
Signed-off-by: Yuan Zhou <[email protected]>
  • Loading branch information
zhouyuan committed Mar 18, 2021
1 parent f42384d commit fdc8777
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion native-sql-engine/cpp/src/precompile/builder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ namespace precompile {
}; \
\
TYPENAME::TYPENAME(arrow::MemoryPool* pool) { impl_ = std::make_shared<Impl>(pool); } \
arrow::Status TYPENAME::Append(CTYPE value) { return impl_->Append(value); } \
arrow::Status TYPENAME::Append(const CTYPE& value) { return impl_->Append(value); } \
arrow::Status TYPENAME::AppendNull() { return impl_->AppendNull(); } \
arrow::Status TYPENAME::Reserve(int64_t length) { return impl_->Reserve(length); } \
arrow::Status TYPENAME::AppendNulls(int64_t length) { \
Expand Down
2 changes: 1 addition & 1 deletion native-sql-engine/cpp/src/precompile/builder.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace precompile {
class TYPENAME { \
public: \
TYPENAME(arrow::MemoryPool* pool); \
arrow::Status Append(TYPE val); \
arrow::Status Append(const TYPE& val); \
arrow::Status AppendNull(); \
arrow::Status Reserve(int64_t); \
arrow::Status AppendNulls(int64_t); \
Expand Down

0 comments on commit fdc8777

Please sign in to comment.