summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel
diff options
context:
space:
mode:
authorChristian Ehrlicher <ch.ehrlicher@gmx.de>2024-03-03 17:14:16 +0100
committerChristian Ehrlicher <ch.ehrlicher@gmx.de>2024-03-04 06:13:54 +0100
commit3dc755a0ae9860cd8bf557eef5a8d9cb27270ff7 (patch)
tree6885f28fc51f9ca0464bfba89ccb8e464c8dd5c1 /src/corelib/kernel
parent376ff95e9308b311038bb316ef36d04244d55b66 (diff)
QCoreApplication: work around gcc 11.3 compiler bug
Fix the amiguity in the comparison of a QByteArray and a char* Task-number: QTBUG-117661 Change-Id: Ic5142b7bc2a8220d244312414618028e8cc50d09 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/kernel')
-rw-r--r--src/corelib/kernel/qcoreapplication.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/kernel/qcoreapplication.cpp b/src/corelib/kernel/qcoreapplication.cpp
index 6fe4d75acd..7e6f21e8a6 100644
--- a/src/corelib/kernel/qcoreapplication.cpp
+++ b/src/corelib/kernel/qcoreapplication.cpp
@@ -2488,7 +2488,7 @@ QString QCoreApplication::applicationFilePath()
if (d->argc) {
static QByteArray procName = QByteArray(d->argv[0]);
- if (procName != d->argv[0]) {
+ if (procName != QByteArrayView(d->argv[0])) {
// clear the cache if the procname changes, so we reprocess it.
QCoreApplicationPrivate::clearApplicationFilePath();
procName.assign(d->argv[0]);