Skip to content

Commit

Permalink
fix: use after std::move
Browse files Browse the repository at this point in the history
  • Loading branch information
sangjanai committed Jan 7, 2025
1 parent 7918935 commit 9b96b47
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions engine/services/engine_service.cc
Original file line number Diff line number Diff line change
Expand Up @@ -763,8 +763,8 @@ cpp::result<void, std::string> EngineService::LoadEngine(
// register deps
if (!(getenv("ENGINE_PATH"))) {
std::vector<std::filesystem::path> 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.");
Expand Down Expand Up @@ -830,8 +830,8 @@ void EngineService::RegisterEngineLibPath() {

// register deps
std::vector<std::filesystem::path> 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.");
Expand Down

0 comments on commit 9b96b47

Please sign in to comment.