Commit b07c1be5 authored by Thorbjørn Lindeijer's avatar Thorbjørn Lindeijer
Browse files

Fixed a crash on exit when include files are still being scanned

Found by Roberto.
parent 1653e287
......@@ -727,7 +727,7 @@ QByteArray CppModelManager::internalDefinedMacros() const
return macros;
void CppModelManager::setIncludesInPaths(const QMap<QString, QStringList> includesInPaths)
void CppModelManager::setIncludesInPaths(const QMap<QString, QStringList> &includesInPaths)
QMutexLocker locker(&mutex);
QMapIterator<QString, QStringList> i(includesInPaths);
......@@ -1182,7 +1182,7 @@ void CppModelManager::updateIncludesInPaths(QFutureInterface<void> &future,
if (future.isCanceled())
const QString path = paths.takeFirst();
......@@ -163,7 +163,7 @@ private:
QStringList internalFrameworkPaths() const;
QByteArray internalDefinedMacros() const;
void setIncludesInPaths(const QMap<QString, QStringList> includesInPaths);
void setIncludesInPaths(const QMap<QString, QStringList> &includesInPaths);
static void updateIncludesInPaths(QFutureInterface<void> &future,
CppModelManager *manager,
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment