forked from qt-creator/qt-creator
		
	Try to resolve the type in the scope of the declaration.
This commit is contained in:
		@@ -604,7 +604,12 @@ ClassOrNamespace *ResolveExpression::baseExpression(const QList<LookupItem> &bas
 | 
			
		||||
                            if (ClassOrNamespace *retBinding = findClass(ptrTy->elementType(), overload->scope()))
 | 
			
		||||
                                return retBinding;
 | 
			
		||||
 | 
			
		||||
                            else if (debug) {
 | 
			
		||||
                            else if (scope != overload->scope()) {
 | 
			
		||||
                                if (ClassOrNamespace *retBinding = findClass(ptrTy->elementType(), scope))
 | 
			
		||||
                                    return retBinding;
 | 
			
		||||
                            }
 | 
			
		||||
 | 
			
		||||
                            if (debug) {
 | 
			
		||||
                                Overview oo;
 | 
			
		||||
                                qDebug() << "no class for:" << oo(ptrTy->elementType());
 | 
			
		||||
                            }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user