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(); }