Skip to content
Permalink
Browse files

kdelibs4: fix compilation with errors about int* vs ptr comparisons (…

  • Loading branch information
NicosPavlov committed Apr 21, 2019
1 parent 3fdcfce commit 49da3e3d0c256cb76e94d4534041be259c405015
Showing with 40 additions and 1 deletion.
  1. +2 −1 kde/kdelibs4/Portfile
  2. +38 −0 kde/kdelibs4/files/patch-locale.diff
@@ -69,7 +69,8 @@ patchfiles workaround-kdeinit4-crash.patch \
patch-cmake-modules-FindKDE4-Internal.cmake.diff \
patch-KdePreferences.diff \
patch-ui-CMakeLists.diff \
patch-FindExiv2.diff
patch-FindExiv2.diff \
patch-locale.diff

#Deactivated as of ticket #45373
# patch-nativeDialogs.diff
@@ -0,0 +1,38 @@
diff -ur kdelibs-4.14.3-orig/kdecore/localization/klocale_kde.cpp kdelibs-4.14.3/kdecore/localization/klocale_kde.cpp
--- kdelibs-4.14.3-orig/kdecore/localization/klocale_kde.cpp 2014-11-07 07:33:50.000000000 +0900
+++ kdelibs-4.14.3/kdecore/localization/klocale_kde.cpp 2019-04-21 11:21:16.000000000 +0900
@@ -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")) != NULL) ||
+ (timeFormat().contains(QString::fromLatin1("%l")) != NULL)) {
return true;
} else {
return false;
diff -ur kdelibs-4.14.3-orig/kio/kfile/kopenwithdialog.cpp kdelibs-4.14.3/kio/kfile/kopenwithdialog.cpp
--- kdelibs-4.14.3-orig/kio/kfile/kopenwithdialog.cpp 2014-11-07 07:33:50.000000000 +0900
+++ kdelibs-4.14.3/kio/kfile/kopenwithdialog.cpp 2019-04-21 11:45:29.000000000 +0900
@@ -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")) != NULL));
d->m_terminaldirty = false; // slotTerminalToggled changed it
}
}
diff -ur kdelibs-4.14.3-orig/kio/kfile/kpropertiesdialog.cpp kdelibs-4.14.3/kio/kfile/kpropertiesdialog.cpp
--- kdelibs-4.14.3-orig/kio/kfile/kpropertiesdialog.cpp 2014-11-07 07:33:50.000000000 +0900
+++ kdelibs-4.14.3/kio/kfile/kpropertiesdialog.cpp 2019-04-21 13:04:23.000000000 +0900
@@ -3306,7 +3306,7 @@

if (preferredTerminal == "konsole")
{
- terminalCloseBool = (d->m_terminalOptionStr.contains( "--noclose" ) > 0);
+ terminalCloseBool = (d->m_terminalOptionStr.contains( "--noclose" ) != NULL);
w.terminalCloseCheck->setChecked(terminalCloseBool);
d->m_terminalOptionStr.remove( "--noclose");
}

0 comments on commit 49da3e3

Please sign in to comment.
You can’t perform that action at this time.