forked from qt-creator/qt-creator
ProjectExplorer: Shorten space needed to store a FileType
Use class enum to shorten the FileType to quint16. This frees up a couple of bytes per FileNode and we can have many of those. Change-Id: I3a9ae25059690fefa15305a4268269647d6dc1c9 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -418,7 +418,7 @@ void TeaLeafReader::extractData()
|
||||
resetData();
|
||||
|
||||
m_projectName = m_parameters.projectName;
|
||||
m_files.append(new FileNode(topCMake, ProjectFileType, false));
|
||||
m_files.append(new FileNode(topCMake, FileType::Project, false));
|
||||
// Do not insert topCMake into m_cmakeFiles: The project already watches that!
|
||||
|
||||
// Find cbp file
|
||||
@@ -450,7 +450,7 @@ void TeaLeafReader::extractData()
|
||||
|
||||
// Make sure the top cmakelists.txt file is always listed:
|
||||
if (!contains(m_files, [topCMake](FileNode *fn) { return fn->filePath() == topCMake; })) {
|
||||
m_files.append(new FileNode(topCMake, ProjectFileType, false));
|
||||
m_files.append(new FileNode(topCMake, FileType::Project, false));
|
||||
}
|
||||
|
||||
m_buildTargets = cbpparser.buildTargets();
|
||||
|
||||
Reference in New Issue
Block a user