forked from qt-creator/qt-creator
C++: Change QStringList to QSet<QString> to prevent conversions.
This eliminates a bunch of list->set->list conversions. Especially the ProjectInfo::appendProjectPart takes lots of time converting for every part added. Change-Id: Ib3c8cd4b0ad6c012ccbeed12ebedd46b9b6cca95 Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
@@ -80,7 +80,7 @@ public:
|
||||
Project *createProject(const QString &name);
|
||||
|
||||
void resetRefreshedSourceFiles();
|
||||
QStringList waitForRefreshedSourceFiles();
|
||||
QSet<QString> waitForRefreshedSourceFiles();
|
||||
void waitForFinishedGc();
|
||||
|
||||
signals:
|
||||
@@ -88,13 +88,13 @@ signals:
|
||||
void projectAdded(ProjectExplorer::Project*);
|
||||
|
||||
public slots:
|
||||
void sourceFilesRefreshed(const QStringList &files);
|
||||
void sourceFilesRefreshed(const QSet<QString> &files);
|
||||
void gcFinished();
|
||||
|
||||
private:
|
||||
bool m_gcFinished;
|
||||
bool m_refreshHappened;
|
||||
QStringList m_lastRefreshedSourceFiles;
|
||||
QSet<QString> m_lastRefreshedSourceFiles;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user