src/checkmemoryleak.cpp(GetAllocationType): simplify condition a bit.

Replace two Token::simpleMatch() calls to one Token::Match().

Correction for my previous (2654a4aa54)
commit.

No functional change.
This commit is contained in:
Slava Semushin 2009-05-24 03:45:14 +07:00
parent 2654a4aa54
commit 9ae9ffa9be
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ CheckMemoryLeakClass::AllocType CheckMemoryLeakClass::GetAllocationType(const To
if (Token::simpleMatch(tok2, "popen (")) if (Token::simpleMatch(tok2, "popen ("))
return Pipe; return Pipe;
if (Token::simpleMatch(tok2, "opendir (") || Token::simpleMatch(tok2, "fdopendir (")) if (Token::Match(tok2, "opendir|fdopendir ("))
return Dir; return Dir;
// Userdefined allocation function.. // Userdefined allocation function..