forked from qt-creator/qt-creator
CMake: Do not crash when restarting a filesystem scan
Change-Id: I7a86169f4dd891c91295a7d6daadfd2bac8db751 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -103,7 +103,7 @@ private:
|
||||
|
||||
void becameDirty();
|
||||
|
||||
void asyncScanForFiles(QFutureInterface<QList<ProjectExplorer::FileNode*>> &fi);
|
||||
void asyncScanForFiles(QFutureInterface<QList<ProjectExplorer::FileNode *>> *fi);
|
||||
|
||||
CMakeBuildConfiguration *m_buildConfiguration = nullptr;
|
||||
mutable std::unique_ptr<QTemporaryDir> m_tempDir = nullptr;
|
||||
@@ -112,8 +112,8 @@ private:
|
||||
QTimer m_reparseTimer;
|
||||
|
||||
std::unique_ptr<BuildDirReader> m_reader;
|
||||
std::unique_ptr<QFutureInterface<QList<ProjectExplorer::FileNode*>>> m_futureInterface;
|
||||
QFutureWatcher<QList<ProjectExplorer::FileNode*>> m_futureWatcher;
|
||||
QFuture<QList<ProjectExplorer::FileNode*>> m_scanFuture;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user