Utils: Rename FilePath::searchOnDevice to searchInDirectories

Makes it a bit clearer that there's no magic path use or similar
beyond this point.

Change-Id: I86c06850d16bf777db05ad23b540d8096926c059
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
hjk
2021-08-09 16:06:45 +02:00
parent be6299a50a
commit a78665ede7
6 changed files with 7 additions and 7 deletions

View File

@@ -1139,11 +1139,11 @@ FilePath FilePath::withNewPath(const QString &newPath) const
Example usage:
\code
binary = FilePath::fromUrl("docker://123/./make);
fullPath = binary.searchOnDevice();
fullPath = binary.searchInDirectories(binary.deviceEnvironment().path());
assert(fullPath == FilePath::fromUrl("docker://123/usr/bin/make"))
\endcode
*/
FilePath FilePath::searchOnDevice(const FilePaths &dirs) const
FilePath FilePath::searchInDirectories(const FilePaths &dirs) const
{
if (needsDevice()) {
QTC_ASSERT(s_deviceHooks.searchInPath, return {});