Skip to content

Commit

Permalink
use std::move() for model name
Browse files Browse the repository at this point in the history
  • Loading branch information
aloeliger committed Feb 9, 2023
1 parent 980d1d2 commit 3a9155e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion emulator.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class ModelLoader {

public:
ModelLoader(std::string model_name) {
model_name_ = model_name;
model_name_ = std::move(model_name);
model_name_.append(".so");
}

Expand Down

0 comments on commit 3a9155e

Please sign in to comment.