GCC 4.7 fix.

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

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

Loading…
Cancel
Save