DBG: .count() -> .find()
This commit is contained in:
parent
35082793d0
commit
8a03ad542b
|
@ -37,7 +37,7 @@ void Int3CoagulatorPass::AnalysisWorker(uint Start, uint End, std::vector<BasicB
|
|||
uint intSeriesCount = 0; // Number of blocks
|
||||
uint intSeriesSize = 0; // Size of instructions
|
||||
|
||||
for(auto itr = Blocks->begin(); counterIndex < End; itr++, counterIndex++)
|
||||
for(auto itr = Blocks->begin(); counterIndex < End; ++itr, counterIndex++)
|
||||
{
|
||||
if(!itr->GetFlag(BASIC_BLOCK_FLAG_PAD))
|
||||
{
|
||||
|
|
|
@ -2197,7 +2197,7 @@ void ErrorCodeInit()
|
|||
|
||||
const char* ErrorCodeToName(unsigned int ErrorCode)
|
||||
{
|
||||
if(!ErrorNames.count(ErrorCode))
|
||||
if(ErrorNames.find(ErrorCode) == ErrorNames.end())
|
||||
return nullptr;
|
||||
|
||||
return ErrorNames[ErrorCode];
|
||||
|
|
|
@ -73,7 +73,7 @@ void ExceptionCodeInit()
|
|||
|
||||
const char* ExceptionCodeToName(unsigned int ExceptionCode)
|
||||
{
|
||||
if(!ExceptionNames.count(ExceptionCode))
|
||||
if(ExceptionNames.find(ExceptionCode) == ExceptionNames.end())
|
||||
return nullptr;
|
||||
|
||||
return ExceptionNames[ExceptionCode];
|
||||
|
|
Loading…
Reference in New Issue