Skip to content

Commit

Permalink
input: Fix missing std::move.
Browse files Browse the repository at this point in the history
  • Loading branch information
heinezen committed Jan 13, 2024
1 parent 4ff5e6d commit a51d2c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libopenage/input/input_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ void InputContext::bind(const event_class &cl, const input_action act) {
}

void InputContext::bind(const Event &ev, const std::vector<input_action> &&acts) {
this->by_event.emplace(std::make_pair(ev, acts));
this->by_event.emplace(std::make_pair(ev, std::move(acts)));
}

void InputContext::bind(const event_class &cl, const std::vector<input_action> &&acts) {
this->by_class.emplace(std::make_pair(cl, acts));
this->by_class.emplace(std::make_pair(cl, std::move(acts)));
}

bool InputContext::is_bound(const Event &ev) const {
Expand Down

0 comments on commit a51d2c3

Please sign in to comment.