From: Otto Moerbeek Date: Mon, 28 Oct 2024 14:08:41 +0000 (+0100) Subject: Same move treatment for value X-Git-Tag: rec-5.2.0-alpha1~9^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ed4b3460837fecebcd6825f6ea00e0afaf5eb19;p=thirdparty%2Fpdns.git Same move treatment for value Here no refs being lowered (for the rec case) but it might save a few cycles --- diff --git a/pdns/recursordist/mtasker.hh b/pdns/recursordist/mtasker.hh index 1287e94455..ecc0aa3bfa 100644 --- a/pdns/recursordist/mtasker.hh +++ b/pdns/recursordist/mtasker.hh @@ -299,7 +299,7 @@ int MTasker::waitEvent(EventKey& key, EventVal* val, un d_threads[d_tid].dt.start(); #endif if (val && d_waitstatus == Answer) { - *val = d_waitval; + *val = std::move(d_waitval); } d_tid = waiter.tid; if ((char*)&waiter < d_threads[d_tid].highestStackSeen) {