forked from qt-creator/qt-creator
ProjectExplorer: Proliferate FilePath
DeployableFile and fallout. Change-Id: I9a9c56e4a4ebf8f68df70d65da2e699efedfe907 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user