forked from qt-creator/qt-creator
		
	CPlusPlus: Remove foreach / Q_FOREACH usage
Task-number: QTCREATORBUG-27464 Change-Id: Idbcedd9f9a2e148cb18e53c9dc0b82b52b372d64 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
		@@ -839,7 +839,8 @@ void FindUsages::memInitializer(MemInitializerAST *ast)
 | 
			
		||||
        Class *classScope = _currentScope->enclosingClass();
 | 
			
		||||
        if (! classScope) {
 | 
			
		||||
            if (ClassOrNamespace *binding = _context.lookupType(_currentScope)) {
 | 
			
		||||
                foreach (Symbol *s, binding->symbols()) {
 | 
			
		||||
                const QList<Symbol *> symbols = binding->symbols();
 | 
			
		||||
                for (Symbol *s : symbols) {
 | 
			
		||||
                    if (Class *k = s->asClass()) {
 | 
			
		||||
                        classScope = k;
 | 
			
		||||
                        break;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user