File kdelibs-gcc11.patch of Package mingw32-kdelibs4

--- kdelibs-4.14.60/kdecore/localization/klocale_kde.cpp.orig	2022-07-01 15:46:05.202303832 +0200
+++ kdelibs-4.14.60/kdecore/localization/klocale_kde.cpp	2022-07-01 15:46:10.797991488 +0200
@@ -2438,8 +2438,8 @@
 
 bool KLocalePrivate::use12Clock() const
 {
-    if ((timeFormat().contains(QString::fromLatin1("%I")) > 0) ||
-        (timeFormat().contains(QString::fromLatin1("%l")) > 0)) {
+    if ((timeFormat().contains(QString::fromLatin1("%I"))) ||
+        (timeFormat().contains(QString::fromLatin1("%l")))) {
         return true;
     } else {
         return false;
--- kdelibs-4.14.60/kio/kfile/kpropertiesdialog.cpp.orig	2022-07-01 16:49:07.236217025 +0200
+++ kdelibs-4.14.60/kio/kfile/kpropertiesdialog.cpp	2022-07-01 16:49:16.283714097 +0200
@@ -3306,7 +3306,7 @@
 
     if (preferredTerminal == "konsole")
     {
-        terminalCloseBool = (d->m_terminalOptionStr.contains( "--noclose" ) > 0);
+        terminalCloseBool = d->m_terminalOptionStr.contains( "--noclose" );
         w.terminalCloseCheck->setChecked(terminalCloseBool);
         d->m_terminalOptionStr.remove( "--noclose");
     }
--- kdelibs-4.14.60/kio/kfile/kopenwithdialog.cpp.orig	2022-07-01 17:09:35.177938806 +0200
+++ kdelibs-4.14.60/kio/kfile/kopenwithdialog.cpp	2022-07-01 18:01:57.835297513 +0200
@@ -713,7 +713,7 @@
         // ### indicate that default value was restored
         d->terminal->setChecked(d->curService->terminal());
         QString terminalOptions = d->curService->terminalOptions();
-        d->nocloseonexit->setChecked((terminalOptions.contains(QLatin1String("--noclose")) > 0));
+        d->nocloseonexit->setChecked(terminalOptions.contains(QLatin1String("--noclose")));
         d->m_terminaldirty = false; // slotTerminalToggled changed it
     }
 }
openSUSE Build Service is sponsored by