forked from qt-creator/qt-creator
ProjectExplorer: Use qAsConst w/ non-const Qt containers in range-loops
Change-Id: I6422b3e40a6925504a231be2d47b3214d86c6e06 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -326,7 +326,7 @@ void ExtraCompilerFactory::annouceCreation(const Project *project,
|
||||
const Utils::FilePath &source,
|
||||
const Utils::FilePaths &targets)
|
||||
{
|
||||
for (ExtraCompilerFactoryObserver *observer : *observers)
|
||||
for (ExtraCompilerFactoryObserver *observer : qAsConst(*observers))
|
||||
observer->newExtraCompiler(project, source, targets);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user