forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -174,8 +174,10 @@ void CppSourceProcessor::addFrameworkPath(const ProjectPart::HeaderPath &framewo
|
||||
}
|
||||
}
|
||||
|
||||
void CppSourceProcessor::setTodo(const QStringList &files)
|
||||
{ m_todo = QSet<QString>::fromList(files); }
|
||||
void CppSourceProcessor::setTodo(const QSet<QString> &files)
|
||||
{
|
||||
m_todo = files;
|
||||
}
|
||||
|
||||
void CppSourceProcessor::run(const QString &fileName,
|
||||
const QStringList &initialIncludes)
|
||||
|
||||
Reference in New Issue
Block a user