Skip to content

Commit 6b24dfe

Browse files
committed
CBlockLocator: performance-move-const-arg Clang tidy fixups
Co-authored-by: "Pieter Wuille <[email protected]>" Co-authored-by: "Vasil Dimov <[email protected]>" Co-authored-by: "MarcoFalke <[email protected]>"
1 parent e9035f8 commit 6b24dfe

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)