forked from qt-creator/qt-creator
Utils: Port some FilePath part accessors to QStringView
Change-Id: Ib5cc262e44c73880b6538eed714365e3d685870a Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -1048,20 +1048,20 @@ QString LinuxDevice::userAtHost() const
|
||||
return sshParameters().userAtHost();
|
||||
}
|
||||
|
||||
Utils::FilePath LinuxDevice::rootPath() const
|
||||
FilePath LinuxDevice::rootPath() const
|
||||
{
|
||||
Utils::FilePath root;
|
||||
root.setScheme("ssh");
|
||||
FilePath root;
|
||||
root.setScheme(u"ssh");
|
||||
root.setHost(userAtHost());
|
||||
root.setPath("/");
|
||||
root.setPath(u"/");
|
||||
return root;
|
||||
}
|
||||
|
||||
bool LinuxDevice::handlesFile(const FilePath &filePath) const
|
||||
{
|
||||
if (filePath.scheme() == "device" && filePath.host() == id().toString())
|
||||
if (filePath.scheme() == u"device" && filePath.host() == id().toString())
|
||||
return true;
|
||||
if (filePath.scheme() == "ssh" && filePath.host() == userAtHost())
|
||||
if (filePath.scheme() == u"ssh" && filePath.host() == userAtHost())
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user