Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9b96b47

Browse files
committed
fix: use after std::move
1 parent7918935 commit9b96b47

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎engine/services/engine_service.cc‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -763,8 +763,8 @@ cpp::result<void, std::string> EngineService::LoadEngine(
763763
// register deps
764764
if (!(getenv("ENGINE_PATH"))) {
765765
std::vector<std::filesystem::path> paths{};
766-
paths.push_back(std::move(cuda_path));
767-
paths.push_back(std::move(engine_dir_path));
766+
paths.push_back(cuda_path);
767+
paths.push_back(engine_dir_path);
768768

769769
CTL_DBG("Registering dylib for"
770770
<< ne <<" with" <<std::to_string(paths.size()) <<" paths.");
@@ -830,8 +830,8 @@ void EngineService::RegisterEngineLibPath() {
830830

831831
// register deps
832832
std::vector<std::filesystem::path> paths{};
833-
paths.push_back(std::move(cuda_path));
834-
paths.push_back(std::move(engine_dir_path));
833+
paths.push_back(cuda_path);
834+
paths.push_back(engine_dir_path);
835835

836836
CTL_DBG("Registering dylib for"
837837
<< ne <<" with" <<std::to_string(paths.size()) <<" paths.");

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp