Skip to content

Commit 750456d

Browse files
committed
[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.
1 parent fa32e67 commit 750456d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/txmempool.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ class CTxMemPool
714714
void RemoveUnbroadcastTx(const uint256& txid, const bool unchecked = false);
715715

716716
/** Returns transactions in unbroadcast set */
717-
const std::set<uint256> GetUnbroadcastTxs() const {
717+
std::set<uint256> GetUnbroadcastTxs() const {
718718
LOCK(cs);
719719
return m_unbroadcast_txids;
720720
}

0 commit comments

Comments
 (0)