mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-05-05 17:30:59 +02:00
[trivial] Remove misleading 'const'
Returning by const value is only meaningful in a specific circumstance around user defined types. In this case, the const is not enforcing any restrictions on the call site, so is misleading.
This commit is contained in:
parent
fa32e676e5
commit
750456d6f2
@ -714,7 +714,7 @@ public:
|
|||||||
void RemoveUnbroadcastTx(const uint256& txid, const bool unchecked = false);
|
void RemoveUnbroadcastTx(const uint256& txid, const bool unchecked = false);
|
||||||
|
|
||||||
/** Returns transactions in unbroadcast set */
|
/** Returns transactions in unbroadcast set */
|
||||||
const std::set<uint256> GetUnbroadcastTxs() const {
|
std::set<uint256> GetUnbroadcastTxs() const {
|
||||||
LOCK(cs);
|
LOCK(cs);
|
||||||
return m_unbroadcast_txids;
|
return m_unbroadcast_txids;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user