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 Dec 25, 2023
1 parent a59158a commit f649e8a
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 f649e8a

Please sign in to comment.