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/cppsourceprocessor_test.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/cppsourceprocessor_test.cpp')
-rw-r--r-- | src/plugins/cpptools/cppsourceprocessor_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cpptools/cppsourceprocessor_test.cpp b/src/plugins/cpptools/cppsourceprocessor_test.cpp index 9b14594954..9be1d9848b 100644 --- a/src/plugins/cpptools/cppsourceprocessor_test.cpp +++ b/src/plugins/cpptools/cppsourceprocessor_test.cpp @@ -129,7 +129,7 @@ void CppToolsPlugin::test_cppsourceprocessor_includes_cyclic() { const QString fileName1 = TestIncludePaths::testFilePath(QLatin1String("cyclic1.h")); const QString fileName2 = TestIncludePaths::testFilePath(QLatin1String("cyclic2.h")); - const QStringList sourceFiles = QStringList() << fileName1 << fileName2; + const QSet<QString> sourceFiles = QSet<QString>() << fileName1 << fileName2; // Create global snapshot (needed in BuiltinEditorDocumentParser) TestCase testCase; |