pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/kde-workspace4 Pointer order is undefined in C++, ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/da989b828d6c
branches:  trunk
changeset: 414404:da989b828d6c
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Mar 26 21:48:12 2020 +0000

description:
Pointer order is undefined in C++, fix portability.

diffstat:

 x11/kde-workspace4/distinfo                                                                               |   5 +-
 x11/kde-workspace4/patches/patch-khotkeys_libkhotkeysprivate_windows__helper_window__selection__rules.cpp |  13 ++++
 x11/kde-workspace4/patches/patch-libs_taskmanager_task.cpp                                                |  17 ++++++
 x11/kde-workspace4/patches/patch-plasma_generic_dataengines_weather_ions_bbcukmet_ion__bbcukmet.cpp       |  27 ++++++++++
 4 files changed, 61 insertions(+), 1 deletions(-)

diffs (99 lines):

diff -r d96937267bb1 -r da989b828d6c x11/kde-workspace4/distinfo
--- a/x11/kde-workspace4/distinfo       Thu Mar 26 21:47:54 2020 +0000
+++ b/x11/kde-workspace4/distinfo       Thu Mar 26 21:48:12 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.21 2018/01/17 19:10:23 markd Exp $
+$NetBSD: distinfo,v 1.22 2020/03/26 21:48:12 joerg Exp $
 
 SHA1 (Daemon.README) = eb1e6af52adc02ded77af17e8953134b7e60d23b
 RMD160 (Daemon.README) = 39edd92ed4314397080f32a8caff0ac3f716ecf4
@@ -23,6 +23,7 @@
 SHA1 (patch-kdm_kcm_main.cpp) = bb692c83fa189342105744cc9c3c180b970571b7
 SHA1 (patch-kdm_kfrontend_CMakeLists.txt) = 0b0c541c7305d31e01a45f0a6a7f5ddb2d2e57fe
 SHA1 (patch-kdm_kfrontend_genkdmconf.c) = 28829bb285df6a3d252eb1bf7043cbd44e10500f
+SHA1 (patch-khotkeys_libkhotkeysprivate_windows__helper_window__selection__rules.cpp) = 04b707413f5ab375d9d8624e78652c725154932f
 SHA1 (patch-kinfocenter_Modules_nics_nic.cpp) = 0f7e846eac8d694e0ab6018d4f4c571b4e0c84db
 SHA1 (patch-ksysguard_example_CMakeLists.txt) = bd10f03a308442b8febe8864010987fb504b2d21
 SHA1 (patch-ksysguard_ksysguard_FreeBSD_ProcessList.c) = 716f1e75fb23f7d6ddf31092e9a60961f078845c
@@ -44,10 +45,12 @@
 SHA1 (patch-libs_ksysguard_processcore_processes.cpp) = 8bfcc8b7e91eafd6b444f4103d3860fb6434a535
 SHA1 (patch-libs_ksysguard_processcore_processes__netbsd__p.cpp) = 37303769e7b3890b47cc4f1f2715f55f2015a3ca
 SHA1 (patch-libs_oxygen_oxygenhelper.cpp) = ef013d9492a1e59e627a82a5b842cb0b7a23160f
+SHA1 (patch-libs_taskmanager_task.cpp) = 983727c78c9569a971eb07d8c1e289db3f0460b2
 SHA1 (patch-mkpamserv) = 736fc439a34298f51c9fb09200b9dc8628eabc43
 SHA1 (patch-plasma_generic_applets_digital-clock_clock.cpp) = dd052f6c36fbd62dd5fecc0bcf162f22e500463c
 SHA1 (patch-plasma_generic_dataengines_rss_CMakeLists.txt) = 6a12cb3cb54a8b1899f29e7f50a1171862dce66e
 SHA1 (patch-plasma_generic_dataengines_time_solarsystem.h) = 474bbf3bc9f9bc0c75772f01218c1739d49fd31c
 SHA1 (patch-plasma_generic_dataengines_time_timesource.h) = 85ccf0ed379c94e174880bc239daee60afccc788
+SHA1 (patch-plasma_generic_dataengines_weather_ions_bbcukmet_ion__bbcukmet.cpp) = ea085aeeb7e05e99759db9d4537ae6c5140e31c6
 SHA1 (patch-plasma_generic_scriptengines_python_plasma__importer.py) = 813dd7c51c1535e7d69ea493db8eb98084bbaac0
 SHA1 (patch-startkde.cmake) = 36421affc2af12a50623ecfd4f3b0cb320796634
diff -r d96937267bb1 -r da989b828d6c x11/kde-workspace4/patches/patch-khotkeys_libkhotkeysprivate_windows__helper_window__selection__rules.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/kde-workspace4/patches/patch-khotkeys_libkhotkeysprivate_windows__helper_window__selection__rules.cpp Thu Mar 26 21:48:12 2020 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-khotkeys_libkhotkeysprivate_windows__helper_window__selection__rules.cpp,v 1.1 2020/03/26 21:48:12 joerg Exp $
+
+--- khotkeys/libkhotkeysprivate/windows_helper/window_selection_rules.cpp.orig 2020-03-26 12:05:58.251568485 +0000
++++ khotkeys/libkhotkeysprivate/windows_helper/window_selection_rules.cpp
+@@ -91,7 +91,7 @@ bool Windowdef_simple::is_substr_match( 
+         case NOT_IMPORTANT :
+           return true;
+         case CONTAINS :
+-          return str1_P.contains( str2_P ) > 0;
++          return str1_P.contains( str2_P );
+         case IS :
+           return str1_P == str2_P;
+         case REGEXP :
diff -r d96937267bb1 -r da989b828d6c x11/kde-workspace4/patches/patch-libs_taskmanager_task.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/kde-workspace4/patches/patch-libs_taskmanager_task.cpp        Thu Mar 26 21:48:12 2020 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-libs_taskmanager_task.cpp,v 1.1 2020/03/26 21:48:12 joerg Exp $
+
+--- libs/taskmanager/task.cpp.orig     2020-03-26 12:01:17.299732149 +0000
++++ libs/taskmanager/task.cpp
+@@ -478,10 +478,10 @@ bool Task::idMatch(const QString& id1, c
+     if (id1.isEmpty() || id2.isEmpty())
+         return false;
+ 
+-    if (id1.contains(id2) > 0)
++    if (id1.contains(id2))
+         return true;
+ 
+-    if (id2.contains(id1) > 0)
++    if (id2.contains(id1))
+         return true;
+ 
+     return false;
diff -r d96937267bb1 -r da989b828d6c x11/kde-workspace4/patches/patch-plasma_generic_dataengines_weather_ions_bbcukmet_ion__bbcukmet.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/kde-workspace4/patches/patch-plasma_generic_dataengines_weather_ions_bbcukmet_ion__bbcukmet.cpp       Thu Mar 26 21:48:12 2020 +0000
@@ -0,0 +1,27 @@
+$NetBSD: patch-plasma_generic_dataengines_weather_ions_bbcukmet_ion__bbcukmet.cpp,v 1.1 2020/03/26 21:48:12 joerg Exp $
+
+--- plasma/generic/dataengines/weather/ions/bbcukmet/ion_bbcukmet.cpp.orig     2020-03-26 12:09:14.941435215 +0000
++++ plasma/generic/dataengines/weather/ions/bbcukmet/ion_bbcukmet.cpp
+@@ -312,11 +312,11 @@ void UKMETIon::readSearchHTMLData(const 
+ 
+     while (!stream.atEnd()) {
+        line = stream.readLine();
+-       if (line.contains("<p class=\"response\">") > 0) {
++       if (line.contains("<p class=\"response\">")) {
+            flag = 1;
+        }
+ 
+-       if (line.contains("There are no forecasts matching") > 0) {
++       if (line.contains("There are no forecasts matching")) {
+            break;
+        }
+ 
+@@ -342,7 +342,7 @@ void UKMETIon::readSearchHTMLData(const 
+             }
+        }
+ 
+-       if (line.contains("<div class=\"line\">") > 0) {
++       if (line.contains("<div class=\"line\">")) {
+            flag = 0;
+        }
+     }



Home | Main Index | Thread Index | Old Index