Skip to content

Commit

Permalink
Merge "minui: Fix the wrong move of the callback."
Browse files Browse the repository at this point in the history
  • Loading branch information
Tao Bao authored and Gerrit Code Review committed Mar 11, 2019
2 parents ba99651 + dfdf635 commit aefc9e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion minui/events.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ int ev_init(ev_callback input_cb, bool allow_touch_inputs) {
}

ev_fdinfo[ev_count].fd = fd;
ev_fdinfo[ev_count].cb = std::move(input_cb);
ev_fdinfo[ev_count].cb = input_cb;
ev_count++;
ev_dev_count++;
if (ev_dev_count == MAX_DEVICES) break;
Expand Down

0 comments on commit aefc9e3

Please sign in to comment.