From 81f658f4be36f1713908218d5878322328d71757 Mon Sep 17 00:00:00 2001 From: minmingzhu Date: Mon, 31 Jul 2023 05:32:11 +0000 Subject: [PATCH] fix issues Signed-off-by: minmingzhu --- mllib-dal/src/main/native/Profile.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mllib-dal/src/main/native/Profile.hpp b/mllib-dal/src/main/native/Profile.hpp index 85f85dd5f..14ffac17f 100644 --- a/mllib-dal/src/main/native/Profile.hpp +++ b/mllib-dal/src/main/native/Profile.hpp @@ -6,10 +6,10 @@ class Profiler { public: - Profiler(std::string s) : subject(s) {} + Profiler(std::string s) : subject(std::move(s)) {} void startProfile(std::string s = "") { - action = s; + action = std::move(s); std::cout << subject << " (native): start " << action << std::endl; startTime = std::chrono::high_resolution_clock::now(); }