C++20 Round 6: range-for loops, throw() -> noexcept
- Convert 8 index-based for loops to range-for in main.cpp: CheckTransaction vout, GetValueIn vin, GetP2SHSigOpCount vin, ConnectInputs first pass vin, ConnectBlock vtx, Reorganize vConnect, block.vtx in CBlock::AcceptBlock - Convert 4 loops in main.h: CTransaction::ToString vin/vout, CBlock::print vtx/vMerkleTree - Convert checkqueue.h worker loop to range-for - Convert script.cpp bitwise NOT loop to range-for - throw() -> noexcept on 8 allocator constructors/destructors (C++17 removed throw())
This commit is contained in:
+2
-2
@@ -72,10 +72,10 @@ private:
|
||||
nIdle--;
|
||||
lock.unlock();
|
||||
|
||||
for (unsigned int i = 0; i < vChecks.size(); i++)
|
||||
for (auto& check : vChecks)
|
||||
{
|
||||
if (fOk)
|
||||
fOk = vChecks[i]();
|
||||
fOk = check();
|
||||
}
|
||||
vChecks.clear();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user