forked from qt-creator/qt-creator
Replace QFileInfo(fileName.toString()) with fileName.toFileInfo()
Change-Id: Iac7f866b4846939af4dcee086ab07797cc6b8ff1 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
ddd9e96afa
commit
1f443bde52
@@ -236,7 +236,7 @@ FileName FileUtils::resolveSymlinks(const FileName &path)
|
||||
*/
|
||||
FileName FileUtils::canonicalPath(const FileName &path)
|
||||
{
|
||||
const QString result = QFileInfo(path.toString()).canonicalFilePath();
|
||||
const QString result = path.toFileInfo().canonicalFilePath();
|
||||
if (result.isEmpty())
|
||||
return path;
|
||||
return FileName::fromString(result);
|
||||
|
||||
Reference in New Issue
Block a user