convert const ref to value

clang-tidy wrongly sees an std::move to a const ref parameter and
believes it to be pointless. The copy constructor however is deleted.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2021-08-17 13:56:07 -07:00
committed by Johannes Altmanninger
parent 4ea5189c4f
commit ffa3e0b4f4
4 changed files with 4 additions and 4 deletions

View File

@@ -199,7 +199,7 @@ void fd_monitor_t::run_in_background() {
}
}
void fd_monitor_t::poke_in_background(const poke_list_t &pokelist) {
void fd_monitor_t::poke_in_background(poke_list_t pokelist) {
ASSERT_IS_BACKGROUND_THREAD();
auto poker = [&pokelist](fd_monitor_item_t &item) {
int fd = item.fd.fd();