forked from qt-creator/qt-creator
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:
@@ -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 {});
|
||||
|
||||
Reference in New Issue
Block a user