ProjectExplorer: Merge IDevice::{filePath,mapToGlobalPath}

They were doing practically the same. Keep the 'filePath' name for
now until something more fitting comes up.

Change-Id: I96ca4da4b30b7b463583e002f2c19d6e6c5541e6
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
hjk
2022-12-14 17:26:30 +01:00
parent 67c2570d74
commit 5787a22f69
9 changed files with 15 additions and 35 deletions

View File

@@ -167,7 +167,7 @@ DockerDeviceWidget::DockerDeviceWidget(const IDevice::Ptr &device)
paths.append(FilePath::fromString(path.trimmed()));
}
paths = Utils::transform(paths, [dockerDevice](const FilePath &path) {
return dockerDevice->mapToGlobalPath(path);
return dockerDevice->filePath(path.path());
});
return paths;
};