Skip to content

Commit b936123

Browse files
author
MacroFake
committed
Merge bitcoin/bitcoin#25963: CBlockLocator: performance-move-const-arg Clang tidy fixup
6b24dfe 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 ACK 6b24dfe vasild: ACK 6b24dfe Tree-SHA512: 7a67acf7b42da07b63fbb392236e9a7be8cf35c36e37ca980c4467fe8295c2eda8aef10f41a1e3036cd9ebece47fa957fc3256033f853bd6a97ce2ca42799a0a
2 parents 01e1627 + 6b24dfe commit b936123

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/chain.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ std::vector<uint256> LocatorEntries(const CBlockIndex* index)
4949

5050
CBlockLocator GetLocator(const CBlockIndex* index)
5151
{
52-
return CBlockLocator{std::move(LocatorEntries(index))};
52+
return CBlockLocator{LocatorEntries(index)};
5353
}
5454

5555
CBlockLocator CChain::GetLocator() const

src/primitives/block.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ struct CBlockLocator
123123

124124
CBlockLocator() {}
125125

126-
explicit CBlockLocator(const std::vector<uint256>& vHaveIn) : vHave(vHaveIn) {}
126+
explicit CBlockLocator(std::vector<uint256>&& have) : vHave(std::move(have)) {}
127127

128128
SERIALIZE_METHODS(CBlockLocator, obj)
129129
{

0 commit comments

Comments
 (0)