From cc70b603d30b1a9dae9cf0bc30c570c5f7b0b994 Mon Sep 17 00:00:00 2001 From: Erik Verbruggen Date: Thu, 4 Sep 2014 14:59:50 +0200 Subject: C++: Change QStringList to QSet 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 --- src/plugins/cpptools/cppmodelmanagerinterface.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/plugins/cpptools/cppmodelmanagerinterface.h') diff --git a/src/plugins/cpptools/cppmodelmanagerinterface.h b/src/plugins/cpptools/cppmodelmanagerinterface.h index f48950499f..e68caee78f 100644 --- a/src/plugins/cpptools/cppmodelmanagerinterface.h +++ b/src/plugins/cpptools/cppmodelmanagerinterface.h @@ -110,7 +110,7 @@ public: virtual void renameMacroUsages(const CPlusPlus::Macro ¯o, const QString &replacement = QString()) = 0; virtual void findMacroUsages(const CPlusPlus::Macro ¯o) = 0; - virtual void finishedRefreshingSourceFiles(const QStringList &files) = 0; + virtual void finishedRefreshingSourceFiles(const QSet &files) = 0; virtual void addModelManagerSupport(ModelManagerSupport *modelManagerSupport) = 0; virtual ModelManagerSupport *modelManagerSupportForMimeType(const QString &mimeType) const = 0; @@ -132,7 +132,7 @@ signals: void aboutToRemoveFiles(const QStringList &files); void documentUpdated(CPlusPlus::Document::Ptr doc); - void sourceFilesRefreshed(const QStringList &files); + void sourceFilesRefreshed(const QSet &files); /// \brief Emitted after updateProjectInfo function is called on the model-manager. /// @@ -143,7 +143,7 @@ signals: public slots: // Documented in source file. - virtual QFuture updateSourceFiles(const QStringList &sourceFiles, + virtual QFuture updateSourceFiles(const QSet &sourceFiles, ProgressNotificationMode mode = ReservedProgressNotification) = 0; virtual void updateModifiedSourceFiles() = 0; -- cgit v1.2.1