Replace QFileInfo(fileName.toString()) with fileName.toFileInfo()

Change-Id: Iac7f866b4846939af4dcee086ab07797cc6b8ff1
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Orgad Shaneh
2017-08-24 08:10:27 +03:00
committed by Orgad Shaneh
parent ddd9e96afa
commit 1f443bde52
3 changed files with 3 additions and 3 deletions

View File

@@ -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);