ProjectExplorer: Proliferate FilePath

DeployableFile and fallout.

Change-Id: I9a9c56e4a4ebf8f68df70d65da2e699efedfe907
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2019-08-27 13:47:24 +02:00
parent 6c9f75ff4a
commit ae11f30b20
9 changed files with 24 additions and 23 deletions

View File

@@ -55,11 +55,10 @@ void DeploymentData::addFile(const QString &localFilePath, const QString &remote
addFile(DeployableFile(localFilePath, remoteDirectory, type));
}
DeployableFile DeploymentData::deployableForLocalFile(const QString &localFilePath) const
DeployableFile DeploymentData::deployableForLocalFile(const Utils::FilePath &localFilePath) const
{
return Utils::findOrDefault(m_files, [&localFilePath](const DeployableFile &d) {
return d.localFilePath().toString() == localFilePath;
});
return Utils::findOrDefault(m_files,
Utils::equal(&DeployableFile::localFilePath, localFilePath));
}
bool DeploymentData::operator==(const DeploymentData &other) const