GCC 4.7 fix.

This partially resolves bug report 958.
Thanks to Francois Andriot.
pull/1/head
Darrell Anderson 13 years ago
parent 3db14e660e
commit b5a7ac1003

@ -3892,15 +3892,15 @@ void CppCodeCompletion::computeCompletionEntryList( SimpleType type, TQValueList
ArgumentList fArgs = ( *it ) ->argumentList(); ArgumentList fArgs = ( *it ) ->argumentList();
if ( fArgs.count() != args.count() ) if ( fArgs.count() != args.count() )
continue; continue;
ArgumentList::iterator it = args.begin(); ArgumentList::iterator it3 = args.begin();
ArgumentList::iterator it2 = fArgs.begin(); ArgumentList::iterator it2 = fArgs.begin();
bool hit = true; bool hit = true;
while ( it != args.end() ) { while ( it3 != args.end() ) {
if ( ( *it ) ->type() != ( *it2 ) ->type() ) { if ( ( *it3 ) ->type() != ( *it2 ) ->type() ) {
hit = false; hit = false;
break; break;
} }
++it; ++it3;
++it2; ++it2;
} }
if ( hit ) { if ( hit ) {

Loading…
Cancel
Save