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:
parent
21b123f888
commit
f5e9444460
@ -2355,8 +2355,6 @@ QString QCoreApplication::applicationFilePath()
|
|||||||
*/
|
*/
|
||||||
absPath = QStandardPaths::findExecutable(argv0);
|
absPath = QStandardPaths::findExecutable(argv0);
|
||||||
}
|
}
|
||||||
|
|
||||||
absPath = QDir::cleanPath(absPath);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
absPath = QFileInfo(absPath).canonicalFilePath();
|
absPath = QFileInfo(absPath).canonicalFilePath();
|
||||||
|
Loading…
Reference in New Issue
Block a user