aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cpptools/baseeditordocumentprocessor.cpp
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@digia.com>2014-09-04 14:59:50 +0200
committerErik Verbruggen <erik.verbruggen@digia.com>2014-09-04 15:59:40 +0200
commitcc70b603d30b1a9dae9cf0bc30c570c5f7b0b994 (patch)
tree765b83e68eea0712aa16128bbf11c82424b868ee /src/plugins/cpptools/baseeditordocumentprocessor.cpp
parent50e951dcb4a421d94e387fb91d527a9ba4bbce00 (diff)
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>
Diffstat (limited to 'src/plugins/cpptools/baseeditordocumentprocessor.cpp')
-rw-r--r--src/plugins/cpptools/baseeditordocumentprocessor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cpptools/baseeditordocumentprocessor.cpp b/src/plugins/cpptools/baseeditordocumentprocessor.cpp
index e8992da58e4..f8353707fbe 100644
--- a/src/plugins/cpptools/baseeditordocumentprocessor.cpp
+++ b/src/plugins/cpptools/baseeditordocumentprocessor.cpp
@@ -127,7 +127,7 @@ void BaseEditorDocumentProcessor::runParser(QFutureInterface<void> &future,
parser->update(workingCopy);
CppModelManagerInterface::instance()
- ->finishedRefreshingSourceFiles(QStringList(parser->filePath()));
+ ->finishedRefreshingSourceFiles(QSet<QString>() << parser->filePath());
future.setProgressValue(1);
}