From f5e94444601f85f3cbbebcc3dd9b76d01e60aae3 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Sat, 24 Apr 2021 20:33:40 -0700 Subject: [PATCH] QCoreApplication::applicationFilePath: remove redundant cleanPath QFileInfo::canonicalFilePath below cleans the path anyway. Change-Id: I7a386ad4f0cb4e2ba629fffd1678fc6f39ddf74a Reviewed-by: Oswald Buddenhagen --- src/corelib/kernel/qcoreapplication.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/corelib/kernel/qcoreapplication.cpp b/src/corelib/kernel/qcoreapplication.cpp index 3fbff3cb8c..78d836d4be 100644 --- a/src/corelib/kernel/qcoreapplication.cpp +++ b/src/corelib/kernel/qcoreapplication.cpp @@ -2355,8 +2355,6 @@ QString QCoreApplication::applicationFilePath() */ absPath = QStandardPaths::findExecutable(argv0); } - - absPath = QDir::cleanPath(absPath); } absPath = QFileInfo(absPath).canonicalFilePath();