net_processing.cpp:1880:37: warning: declaration shadows a local variable [-Wshadow]
for (const CTransactionRef& tx : lRemovedTxn)
^
net_processing.cpp:1728:29: note: previous declaration is here
const CTransaction& tx = *ptx;
^
1 warning generated.
@TheBlueMatt Is _tx OK for you or do you prefer other name here? Like removedTx or so...
fanquake added the label P2P on Jan 20, 2017
fanquake added the label Refactoring on Jan 20, 2017
dcousens
commented at 5:09 AM on January 20, 2017:
contributor
removedTx?
gmaxwell
commented at 8:45 AM on January 20, 2017:
contributor
In many codebases underscore prefixes are used for function arguments; arguably they're even bad there because they're easy to confuse with non-prefix versions. Please don't pepper them into function bodies.
itRemoveTx or removedTx as dcousens suggested would be fine.
Do not shadow local variable named `tx`.44f2baac48
paveljanik force-pushed on Jan 20, 2017
morcos
commented at 7:57 PM on January 20, 2017:
member
utACK44f2baa
fanquake
commented at 12:00 AM on January 21, 2017:
member
utACK44f2baa
laanwj merged this on Jan 26, 2017
laanwj closed this on Jan 26, 2017
laanwj referenced this in commit 10dc58a2aa on Jan 26, 2017
This is a metadata mirror of the GitHub repository
bitcoin/bitcoin.
This site is not affiliated with GitHub.
Content is generated from a GitHub metadata backup.
generated: 2026-05-20 06:55 UTC