aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.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/cppeditor/followsymbol_switchmethoddecldef_test.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/cppeditor/followsymbol_switchmethoddecldef_test.cpp')
-rw-r--r--src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp b/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp
index 87ea2fa0db..b3191ba031 100644
--- a/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp
+++ b/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp
@@ -268,7 +268,7 @@ F2TestCase::F2TestCase(CppEditorAction action,
QVERIFY(testFile->writeToDisk());
// Update Code Model
- QStringList filePaths;
+ QSet<QString> filePaths;
foreach (const TestDocumentPtr &testFile, testFiles)
filePaths << testFile->filePath();
QVERIFY(parseFiles(filePaths));