Skip to content

Commit a51d2c3

Browse files
committed
input: Fix missing std::move.
1 parent 4ff5e6d commit a51d2c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libopenage/input/input_context.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ void InputContext::bind(const event_class &cl, const input_action act) {
5050
}
5151

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

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

6060
bool InputContext::is_bound(const Event &ev) const {

0 commit comments

Comments
 (0)