QCoreApplication::applicationFilePath: remove redundant cleanPath

QFileInfo::canonicalFilePath below cleans the path anyway.

Change-Id: I7a386ad4f0cb4e2ba629fffd1678fc6f39ddf74a
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
This commit is contained in:
Thiago Macieira 2021-04-24 20:33:40 -07:00 committed by Oswald Buddenhagen
parent 21b123f888
commit f5e9444460

View File

@ -2355,8 +2355,6 @@ QString QCoreApplication::applicationFilePath()
*/
absPath = QStandardPaths::findExecutable(argv0);
}
absPath = QDir::cleanPath(absPath);
}
absPath = QFileInfo(absPath).canonicalFilePath();