mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-20 10:38:42 +01:00
Merge bitcoin/bitcoin#25963: CBlockLocator: performance-move-const-arg Clang tidy fixup
6b24dfe24d
CBlockLocator: performance-move-const-arg Clang tidy fixups (Jon Atack) Pull request description: Fix Clang-tidy CI errors on master. See https://cirrus-ci.com/task/4806752200818688?logs=ci#L4696 for an example. ACKs for top commit: MarcoFalke: review ACK6b24dfe24d
vasild: ACK6b24dfe24d
Tree-SHA512: 7a67acf7b42da07b63fbb392236e9a7be8cf35c36e37ca980c4467fe8295c2eda8aef10f41a1e3036cd9ebece47fa957fc3256033f853bd6a97ce2ca42799a0a
This commit is contained in:
commit
b936123110
@ -49,7 +49,7 @@ std::vector<uint256> LocatorEntries(const CBlockIndex* index)
|
||||
|
||||
CBlockLocator GetLocator(const CBlockIndex* index)
|
||||
{
|
||||
return CBlockLocator{std::move(LocatorEntries(index))};
|
||||
return CBlockLocator{LocatorEntries(index)};
|
||||
}
|
||||
|
||||
CBlockLocator CChain::GetLocator() const
|
||||
|
@ -123,7 +123,7 @@ struct CBlockLocator
|
||||
|
||||
CBlockLocator() {}
|
||||
|
||||
explicit CBlockLocator(const std::vector<uint256>& vHaveIn) : vHave(vHaveIn) {}
|
||||
explicit CBlockLocator(std::vector<uint256>&& have) : vHave(std::move(have)) {}
|
||||
|
||||
SERIALIZE_METHODS(CBlockLocator, obj)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user