src: implemented move constructor/assignment for filepath
* improves indexing performance by roughly 5% * switched to use uniqu_ptr for boost path to get rid of including boost in header * added different methods to change the current FilePath or to make a copy and change that one * used these methods appropriately throughout the code base * removed exists() method from FileSystem because it is already contained in FilePath * added const in some places
This commit is contained in:
@@ -305,7 +305,7 @@ void QtProjectWizzardContentPathsCDBHeader::load()
|
||||
{
|
||||
for (const FilePath& path : IndexerCommandCxxCdb::getSourceFilesFromCDB(cdbPath))
|
||||
{
|
||||
sourcePaths.insert(path.parentDirectory());
|
||||
sourcePaths.insert(path.getParentDirectory());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -325,7 +325,7 @@ void QtProjectWizzardContentPathsCDBHeader::load()
|
||||
if (lastPath.empty() || !lastPath.contains(path)) // don't add subdirectories of already added paths
|
||||
{
|
||||
lastPath = path;
|
||||
rootPaths.push_back(path.relativeTo(projectPath));
|
||||
rootPaths.push_back(path.getRelativeTo(projectPath));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user