File gcc13-fix.patch of Package kdebase4-workspace

--- khotkeys/libkhotkeysprivate/windows_helper/window_selection_rules.cpp	2015-08-12 09:03:15.000000000 +0200
+++ khotkeys/libkhotkeysprivate/windows_helper/window_selection_rules.cpp	2025-10-27 19:10:26.005960453 +0100
@@ -91,7 +91,7 @@
         case NOT_IMPORTANT :
           return true;
         case CONTAINS :
-          return str1_P.contains( str2_P ) > 0;
+          return str1_P.contains( str2_P ) != nullptr;
         case IS :
           return str1_P == str2_P;
         case REGEXP :
--- libs/taskmanager/task.cpp	2015-08-12 09:03:15.000000000 +0200
+++ libs/taskmanager/task.cpp	2025-10-27 19:16:33.512955378 +0100
@@ -478,10 +478,10 @@
     if (id1.isEmpty() || id2.isEmpty())
         return false;
 
-    if (id1.contains(id2) > 0)
+    if (id1.contains(id2) != nullptr)
         return true;
 
-    if (id2.contains(id1) > 0)
+    if (id2.contains(id1) != nullptr)
         return true;
 
     return false;
--- plasma/generic/dataengines/weather/ions/bbcukmet/ion_bbcukmet.cpp	2015-08-12 09:03:15.000000000 +0200
+++ plasma/generic/dataengines/weather/ions/bbcukmet/ion_bbcukmet.cpp	2025-10-27 19:20:52.818935925 +0100
@@ -312,11 +312,11 @@
 
     while (!stream.atEnd()) {
        line = stream.readLine();
-       if (line.contains("<p class=\"response\">") > 0) {
+       if (line.contains("<p class=\"response\">") != nullptr ) {
            flag = 1;
        }
 
-       if (line.contains("There are no forecasts matching") > 0) {
+       if (line.contains("There are no forecasts matching") != nullptr ) {
            break;
        }
 
@@ -342,7 +342,7 @@
             }
        }
 
-       if (line.contains("<div class=\"line\">") > 0) {
+       if (line.contains("<div class=\"line\">") != nullptr ) {
            flag = 0;
        }
     }
openSUSE Build Service is sponsored by