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>
This commit is contained in:
Christian Ehrlicher 2024-03-03 17:14:16 +01:00
parent 376ff95e93
commit 3dc755a0ae

View File

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