This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.1 by this push:
     new 62ad1459822 branch-2.1: [fix] Add initialization list to the copy 
constructor of ScanPredicate in jni_connect.h #46666 (#46725)
62ad1459822 is described below

commit 62ad145982220764186f815d524706325ab4f732
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Fri Jan 10 10:48:26 2025 +0800

    branch-2.1: [fix] Add initialization list to the copy constructor of 
ScanPredicate in jni_connect.h #46666 (#46725)
    
    Cherry-picked from #46666
    
    Co-authored-by: 神技圈子 <songguang...@gmail.com>
---
 be/src/vec/exec/jni_connector.h | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/be/src/vec/exec/jni_connector.h b/be/src/vec/exec/jni_connector.h
index 52a3fb2e778..a033a652063 100644
--- a/be/src/vec/exec/jni_connector.h
+++ b/be/src/vec/exec/jni_connector.h
@@ -100,13 +100,11 @@ public:
 
         ScanPredicate(const std::string column_name) : 
column_name(std::move(column_name)) {}
 
-        ScanPredicate(const ScanPredicate& other) {
-            column_name = other.column_name;
-            op = other.op;
+        ScanPredicate(const ScanPredicate& other)
+                : column_name(other.column_name), op(other.op), 
scale(other.scale) {
             for (auto v : other.values) {
                 values.emplace_back(v);
             }
-            scale = other.scale;
         }
 
         int length() {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to