1
0
Fork 0

DBG: .count() -> .find()

This commit is contained in:
Nukem 2015-07-11 22:33:04 -04:00
parent 35082793d0
commit 8a03ad542b
3 changed files with 3 additions and 3 deletions

View File

@ -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))
{

View File

@ -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];

View File

@ -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];