mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-19 04:41:15 -03:00
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:
committed by
Johannes Altmanninger
parent
4ea5189c4f
commit
ffa3e0b4f4
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user