mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-13 07:28:59 +01:00
refactor: Make const refs vars where applicable
This avoids initializing variables with the copy-constructor of a non-trivially copyable type.
This commit is contained in:
@@ -1407,7 +1407,7 @@ RPCHelpMan sendall()
|
||||
}
|
||||
|
||||
CAmount output_amounts_claimed{0};
|
||||
for (CTxOut out : rawTx.vout) {
|
||||
for (const CTxOut& out : rawTx.vout) {
|
||||
output_amounts_claimed += out.nValue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user