commit | aefc9e3ba9c4831b3e5fc797ba3c1cf5312c7b6a | [log] [tgz] |
---|---|---|
author | Tao Bao <tbao@google.com> | Mon Mar 11 22:51:50 2019 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Mon Mar 11 22:51:50 2019 +0000 |
tree | 23004a16f2fdb8db111fac12a6e704f84aa4bf6a | |
parent | ba9965199ac276bb1ca68fce5dede3a35e38b8bb [diff] | |
parent | dfdf63501e0ce5ed07828731483228ba5c9dee23 [diff] |
Merge "minui: Fix the wrong move of the callback."
diff --git a/minui/events.cpp b/minui/events.cpp index 30f8d50..c958610 100644 --- a/minui/events.cpp +++ b/minui/events.cpp
@@ -97,7 +97,7 @@ } 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;