From 2f0a4c6e7ae1f3e8b1cfc2303bec9f99900fa290 Mon Sep 17 00:00:00 2001 From: Nikita Titov Date: Fri, 23 Oct 2020 02:22:33 +0300 Subject: [PATCH] remove std::move --- src/boosting/gbdt_model_text.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/boosting/gbdt_model_text.cpp b/src/boosting/gbdt_model_text.cpp index 4d9174313d38..4eeb731f587f 100644 --- a/src/boosting/gbdt_model_text.cpp +++ b/src/boosting/gbdt_model_text.cpp @@ -393,7 +393,7 @@ std::string GBDT::SaveModelToString(int start_iteration, int num_iteration, int ss << loaded_parameter_ << "\n"; ss << "end of parameters" << '\n'; } - return std::move(ss.str()); + return ss.str(); } bool GBDT::SaveModelToFile(int start_iteration, int num_iteration, int feature_importance_type, const char* filename) const { @@ -618,7 +618,7 @@ std::vector GBDT::FeatureImportance(int num_iteration, int importance_ty } else { Log::Fatal("Unknown importance type: only support split=0 and gain=1"); } - return std::move(feature_importances); + return feature_importances; } } // namespace LightGBM