You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by yi...@apache.org on 2025/11/05 04:29:34 UTC

(doris) branch branch-4.0 updated: branch-4.0: [chore](column)Add explicit to the ColumnVector constructor #57380 (#57481)

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] <41...@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 <ya...@selectdb.com>
---
 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: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org