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
@@ -751,8 +751,8 @@ bool EvalScript(vector<vector<unsigned char> >& stack, const CScript& script, co
|
||||
if (stack.size() < 1)
|
||||
return false;
|
||||
valtype& vch = stacktop(-1);
|
||||
for (unsigned int i = 0; i < vch.size(); i++)
|
||||
vch[i] = ~vch[i];
|
||||
for (auto& b : vch)
|
||||
b = ~b;
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user