diff options
author | Erik Verbruggen <erik.verbruggen@digia.com> | 2014-09-04 14:59:50 +0200 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@digia.com> | 2014-09-04 15:59:40 +0200 |
commit | cc70b603d30b1a9dae9cf0bc30c570c5f7b0b994 (patch) | |
tree | 765b83e68eea0712aa16128bbf11c82424b868ee /src/plugins/cpptools/cppfindreferences.cpp | |
parent | 50e951dcb4a421d94e387fb91d527a9ba4bbce00 (diff) | |
download | qt-creator-cc70b603d30b1a9dae9cf0bc30c570c5f7b0b994.tar.gz |
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/cppfindreferences.cpp')
-rw-r--r-- | src/plugins/cpptools/cppfindreferences.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cpptools/cppfindreferences.cpp b/src/plugins/cpptools/cppfindreferences.cpp index 27bd536a40..6e0ec85ede 100644 --- a/src/plugins/cpptools/cppfindreferences.cpp +++ b/src/plugins/cpptools/cppfindreferences.cpp @@ -385,7 +385,7 @@ void CppFindReferences::onReplaceButtonClicked(const QString &text, { const QStringList fileNames = TextEditor::BaseFileFind::replaceAll(text, items, preserveCase); if (!fileNames.isEmpty()) { - m_modelManager->updateSourceFiles(fileNames); + m_modelManager->updateSourceFiles(fileNames.toSet()); Core::SearchResultWindow::instance()->hide(); } } |