HomePhabricator

refactor: Use move semantics in `CCheckQueue::Add`

Description

refactor: Use move semantics in CCheckQueue::Add

Summary:

refactor: Use move semantics in CCheckQueue::Add

Co-authored-by: Martin Leitner-Ankerl <martin.ankerl@gmail.com>

refactor: Make move semantics explicit for callers

clang-tidy, test: Fix bugprone-use-after-move in Correct_Queue_range()

This is a partial backport of core#26749
https://github.com/bitcoin/bitcoin/pull/26749/commits/6c2d5972f3544c4f3e987828a99e88f27b62cf87
https://github.com/bitcoin/bitcoin/pull/26749/commits/04831fee6dca3eb86cd1d6b9ef879b296263fe35
https://github.com/bitcoin/bitcoin/pull/26749/commits/9a0b5241396efe3b3ceb3931717c30bb94f99bfb

Depends on D16143

Test Plan: ninja all check-all bitcoin-fuzzers bench-bitcoin

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

Differential Revision: https://reviews.bitcoinabc.org/D16144

Details

Provenance
Hennadii Stepanov <32963518+hebasto@users.noreply.github.com>Authored on Mar 21 2023, 13:03
PiRKCommitted on May 13 2024, 16:48
PiRKPushed on May 13 2024, 16:48
Reviewer
Restricted Project
Differential Revision
D16144: refactor: Use move semantics in `CCheckQueue::Add`
Parents
rABCb3e09635eb70: refactor: Avoid CScriptCheck::swap
Branches
Unknown
Tags
Unknown