forked from qt-creator/qt-creator
		
	Revert now unnecessary checks for null-types
This reverts commits:c721304a47885d908ea3a0909989f7fb4ad59ddb0a9a67cf540d1624d4d1d018cfd5cb0504fdd00ba2fd10fe19Conflicts: src/plugins/cpptools/cppcodecompletion.cpp Reviewed-by: Roberto Raggi
This commit is contained in:
		| @@ -320,8 +320,8 @@ bool CheckExpression::visit(QtMethodAST *ast) | ||||
|     Scope dummy; | ||||
|     FullySpecifiedType methTy = semantic()->check(ast->declarator, FullySpecifiedType(), | ||||
|                                                   &dummy, &name); | ||||
|     Function *fty = 0; | ||||
|     if (! methTy || 0 == (fty = methTy->asFunctionType())) | ||||
|     Function *fty = methTy->asFunctionType(); | ||||
|     if (! fty) | ||||
|         translationUnit()->warning(ast->firstToken(), "expected a function declarator"); | ||||
|     else { | ||||
|         for (unsigned i = 0; i < fty->argumentCount(); ++i) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user