From 9b96b47a47d6b1de7881e7e4ef7ea99e8bcf4403 Mon Sep 17 00:00:00 2001 From: vansangpfiev Date: Tue, 7 Jan 2025 09:07:11 +0700 Subject: [PATCH] fix: use after std::move --- engine/services/engine_service.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/engine/services/engine_service.cc b/engine/services/engine_service.cc index 39e6e7961..c6b107af3 100644 --- a/engine/services/engine_service.cc +++ b/engine/services/engine_service.cc @@ -763,8 +763,8 @@ cpp::result EngineService::LoadEngine( // register deps if (!(getenv("ENGINE_PATH"))) { std::vector paths{}; - paths.push_back(std::move(cuda_path)); - paths.push_back(std::move(engine_dir_path)); + paths.push_back(cuda_path); + paths.push_back(engine_dir_path); CTL_DBG("Registering dylib for " << ne << " with " << std::to_string(paths.size()) << " paths."); @@ -830,8 +830,8 @@ void EngineService::RegisterEngineLibPath() { // register deps std::vector paths{}; - paths.push_back(std::move(cuda_path)); - paths.push_back(std::move(engine_dir_path)); + paths.push_back(cuda_path); + paths.push_back(engine_dir_path); CTL_DBG("Registering dylib for " << ne << " with " << std::to_string(paths.size()) << " paths.");