Fixed #2425 (segmentation fault of cppcheck)

This commit is contained in:
Robert Reif 2011-01-07 07:42:00 +01:00 committed by Daniel Marjamäki
parent 5eeb18dcd7
commit 56ffde402f
1 changed files with 2 additions and 1 deletions

View File

@ -1574,7 +1574,8 @@ void SymbolDatabase::SpaceInfo::initializeVarList(const Func &func, std::list<st
}
// Calling member function?
else if (Token::simpleMatch(ftok, "operator = ("))
else if (Token::simpleMatch(ftok, "operator = (") &&
ftok->previous()->str() != "::")
{
// check if member function exists
std::list<Func>::const_iterator it;