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:
parent
2654a4aa54
commit
9ae9ffa9be
|
@ -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..
|
||||||
|
|
Loading…
Reference in New Issue