diff --git a/src/io/dense_bin.hpp b/src/io/dense_bin.hpp index e612052e47d2..84df590c3fe7 100644 --- a/src/io/dense_bin.hpp +++ b/src/io/dense_bin.hpp @@ -614,7 +614,7 @@ class DenseBin : public Bin { #endif std::vector buf_; - DenseBin(const DenseBin& other) + DenseBin(const DenseBin& other) : num_data_(other.num_data_), data_(other.data_) {} }; diff --git a/src/io/multi_val_dense_bin.hpp b/src/io/multi_val_dense_bin.hpp index 2bab45f044cd..f8764c03bec6 100644 --- a/src/io/multi_val_dense_bin.hpp +++ b/src/io/multi_val_dense_bin.hpp @@ -343,7 +343,7 @@ class MultiValDenseBin : public MultiValBin { std::vector offsets_; std::vector> data_; - MultiValDenseBin(const MultiValDenseBin& other) + MultiValDenseBin(const MultiValDenseBin& other) : num_data_(other.num_data_), num_bin_(other.num_bin_), num_feature_(other.num_feature_), offsets_(other.offsets_), data_(other.data_) { } diff --git a/src/io/multi_val_sparse_bin.hpp b/src/io/multi_val_sparse_bin.hpp index edc48ca84c2a..df0bf67de300 100644 --- a/src/io/multi_val_sparse_bin.hpp +++ b/src/io/multi_val_sparse_bin.hpp @@ -430,8 +430,7 @@ class MultiValSparseBin : public MultiValBin { std::vector t_size_; std::vector offsets_; - MultiValSparseBin( - const MultiValSparseBin& other) + MultiValSparseBin(const MultiValSparseBin& other) : num_data_(other.num_data_), num_bin_(other.num_bin_), estimate_element_per_row_(other.estimate_element_per_row_), diff --git a/src/io/sparse_bin.hpp b/src/io/sparse_bin.hpp index f7137d29ffd9..3ec26aba4d95 100644 --- a/src/io/sparse_bin.hpp +++ b/src/io/sparse_bin.hpp @@ -782,7 +782,7 @@ class SparseBin : public Bin { SparseBin* Clone() override; - SparseBin(const SparseBin& other) + SparseBin(const SparseBin& other) : num_data_(other.num_data_), deltas_(other.deltas_), vals_(other.vals_),