From: Otto Moerbeek Date: Mon, 4 Nov 2024 11:51:56 +0000 (+0100) Subject: Remove the move call in two instances where it really does not add anything X-Git-Tag: rec-5.2.0-alpha1~9^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc457c43b694e068591a9843c2608a7f87f19911;p=thirdparty%2Fpdns.git Remove the move call in two instances where it really does not add anything --- diff --git a/pdns/recursordist/mtasker.hh b/pdns/recursordist/mtasker.hh index a6e30dafef..9e12c29fb0 100644 --- a/pdns/recursordist/mtasker.hh +++ b/pdns/recursordist/mtasker.hh @@ -344,7 +344,7 @@ int MTasker::sendEvent(const EventKey& key, const Event d_waitval = *val; } d_tid = waiter->tid; // set tid - d_eventkey = std::move(waiter->key); // pass waitEvent the exact key it was woken for + d_eventkey = waiter->key; // pass waitEvent the exact key it was woken for d_used = false; auto userspace = std::move(waiter->context); d_waiters.erase(waiter); // removes the waitpoint @@ -464,7 +464,7 @@ bool MTasker::schedule(const struct timeval& now) for (auto i = ttdindex.begin(); i != ttdindex.end();) { if (i->ttd.tv_sec && i->ttd < now) { d_waitstatus = TimeOut; - d_eventkey = std::move(i->key); // pass waitEvent the exact key it was woken for + d_eventkey = i->key; // pass waitEvent the exact key it was woken for d_used = false; auto ucontext = i->context; d_tid = i->tid;