forked from qt-creator/qt-creator
ClangTools: Use qAsConst with non-const Qt containers in range-loops
Change-Id: Id9df0a27c4bcba57ee76574e32ca53cb6c28a43d Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -296,7 +296,7 @@ void ClangToolRunWorker::start()
|
||||
|
||||
void ClangToolRunWorker::stop()
|
||||
{
|
||||
for (ClangToolRunner *runner : m_runners) {
|
||||
for (ClangToolRunner *runner : qAsConst(m_runners)) {
|
||||
QObject::disconnect(runner, nullptr, this, nullptr);
|
||||
delete runner;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user