This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-4.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-4.0 by this push:
new 60129c32750 branch-4.0: [chore](column)Add explicit to the
ColumnVector constructor #57380 (#57481)
60129c32750 is described below
commit 60129c327507405575d3a52fe6b60b0b7a70545d
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Wed Nov 5 12:29:26 2025 +0800
branch-4.0: [chore](column)Add explicit to the ColumnVector constructor
#57380 (#57481)
Cherry-picked from #57380
Co-authored-by: Mryange <[email protected]>
---
be/src/vec/columns/column_vector.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/be/src/vec/columns/column_vector.h
b/be/src/vec/columns/column_vector.h
index 264ee4520c1..1f118a2a866 100644
--- a/be/src/vec/columns/column_vector.h
+++ b/be/src/vec/columns/column_vector.h
@@ -79,8 +79,8 @@ public:
using Container = PaddedPODArray<value_type>;
ColumnVector() = default;
- ColumnVector(const size_t n) : data(n) {}
- ColumnVector(const size_t n, const value_type x) : data(n, x) {}
+ explicit ColumnVector(const size_t n) : data(n) {}
+ explicit ColumnVector(const size_t n, const value_type x) : data(n, x) {}
ColumnVector(const ColumnVector& src) : data(src.data.begin(),
src.data.end()) {}
/// Sugar constructor.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]