Fix C++11 compatibility issues.diff -r1.54 -r1.55 pkgsrc/x11/kdelibs4/distinfo
(joerg)
@@ -1,38 +1,44 @@ | @@ -1,38 +1,44 @@ | |||
1 | $NetBSD: distinfo,v 1.54 2019/11/02 19:45:26 maya Exp $ | 1 | $NetBSD: distinfo,v 1.55 2020/03/24 20:34:31 joerg Exp $ | |
2 | 2 | |||
3 | SHA1 (kdelibs-4.14.38.tar.xz) = 2271f8b38cd5b6b55fa31c567271e3ca37ef641a | 3 | SHA1 (kdelibs-4.14.38.tar.xz) = 2271f8b38cd5b6b55fa31c567271e3ca37ef641a | |
4 | RMD160 (kdelibs-4.14.38.tar.xz) = edf16e14842237950655bf44c073070c5bb7d74b | 4 | RMD160 (kdelibs-4.14.38.tar.xz) = edf16e14842237950655bf44c073070c5bb7d74b | |
5 | SHA512 (kdelibs-4.14.38.tar.xz) = 54fbbb9b2f12a47d5aca21c152164ed03cc6a6619bf285e2b93c8e9260042ffd728ef41e1badb217e552de6478687cab5d3caf14af7b32da8caca3468d469e45 | 5 | SHA512 (kdelibs-4.14.38.tar.xz) = 54fbbb9b2f12a47d5aca21c152164ed03cc6a6619bf285e2b93c8e9260042ffd728ef41e1badb217e552de6478687cab5d3caf14af7b32da8caca3468d469e45 | |
6 | Size (kdelibs-4.14.38.tar.xz) = 11644900 bytes | 6 | Size (kdelibs-4.14.38.tar.xz) = 11644900 bytes | |
7 | SHA1 (patch-ConfigureChecks.cmake) = b03b38108d68d940782fbbb876affd011a39acf4 | 7 | SHA1 (patch-ConfigureChecks.cmake) = b03b38108d68d940782fbbb876affd011a39acf4 | |
8 | SHA1 (patch-aa) = 86c801869ba1fd2608256519cc92088225c4dafc | 8 | SHA1 (patch-aa) = 86c801869ba1fd2608256519cc92088225c4dafc | |
9 | SHA1 (patch-ab) = 3f89ddfa9a6101a016128d82dbbd0e985e396cae | 9 | SHA1 (patch-ab) = 3f89ddfa9a6101a016128d82dbbd0e985e396cae | |
10 | SHA1 (patch-ad) = 08467b484f3df864d343d9151b13bedc4f001976 | 10 | SHA1 (patch-ad) = 08467b484f3df864d343d9151b13bedc4f001976 | |
11 | SHA1 (patch-ag) = 67561007567ba10f20d8e8572dd0a33c8139b7cd | 11 | SHA1 (patch-ag) = 67561007567ba10f20d8e8572dd0a33c8139b7cd | |
12 | SHA1 (patch-ah) = 368f4f641ce55257409137185357e796666ae42f | 12 | SHA1 (patch-ah) = 368f4f641ce55257409137185357e796666ae42f | |
13 | SHA1 (patch-aj) = 501e34c8fdf242c3718ecb26577ac5940d37fae5 | 13 | SHA1 (patch-aj) = 501e34c8fdf242c3718ecb26577ac5940d37fae5 | |
14 | SHA1 (patch-ak) = 73cc1bb149039d2fe3c05ee631426a8773f951c6 | 14 | SHA1 (patch-ak) = 73cc1bb149039d2fe3c05ee631426a8773f951c6 | |
15 | SHA1 (patch-al) = 20212d740191a699f7aa35db8c23a3b3cb55904e | 15 | SHA1 (patch-al) = 20212d740191a699f7aa35db8c23a3b3cb55904e | |
16 | SHA1 (patch-am) = b6c315d152d2c3d3c66ad85050549d0b39b263e5 | 16 | SHA1 (patch-am) = b6c315d152d2c3d3c66ad85050549d0b39b263e5 | |
17 | SHA1 (patch-cmake_modules_FindHUNSPELL.cmake) = 52bd28c88d696d52ce052ddd7702a0f46244f86e | 17 | SHA1 (patch-cmake_modules_FindHUNSPELL.cmake) = 52bd28c88d696d52ce052ddd7702a0f46244f86e | |
18 | SHA1 (patch-cmake_modules_FindKDE4Internal.cmake) = becfce89d45fd9b70c2ca08a83ca0e650004996a | 18 | SHA1 (patch-cmake_modules_FindKDE4Internal.cmake) = becfce89d45fd9b70c2ca08a83ca0e650004996a | |
19 | SHA1 (patch-dnssd_servicemodel.cpp) = c106e5feca008ac62d3ad9a074c1bcf4a998d55a | |||
19 | SHA1 (patch-kdecore_io_kdirwatch__p.h) = 3c14e26f3962743f7d450e2a5ea2df43bc7524b5 | 20 | SHA1 (patch-kdecore_io_kdirwatch__p.h) = 3c14e26f3962743f7d450e2a5ea2df43bc7524b5 | |
20 | SHA1 (patch-kdecore_localization_klocale_kde.cpp) = b8a513a0c51e65d7e604a88c1d0e3325be6ad688 | 21 | SHA1 (patch-kdecore_localization_klocale_kde.cpp) = b6109c79c2e4c6a7c3338ab04a48b29affc502ca | |
21 | SHA1 (patch-kdecore_network_ConfigureChecks.cmake) = 0ad9352974911ef78ec565f7b2a97c45ead2cf72 | 22 | SHA1 (patch-kdecore_network_ConfigureChecks.cmake) = 0ad9352974911ef78ec565f7b2a97c45ead2cf72 | |
22 | SHA1 (patch-kdecore_tests_CMakeLists.txt) = bbe806b078f54201528c86489d3ac200145a8d2f | 23 | SHA1 (patch-kdecore_tests_CMakeLists.txt) = bbe806b078f54201528c86489d3ac200145a8d2f | |
23 | SHA1 (patch-kdecore_util_kshareddatacache_p.h) = 6d064fe75fbecd489b0343960333864c717c0805 | 24 | SHA1 (patch-kdecore_util_kshareddatacache_p.h) = 6d064fe75fbecd489b0343960333864c717c0805 | |
25 | SHA1 (patch-kdeui_icons_kiconcache.cpp) = c360192afd21efedc6dad8a6ccdd61573ee0dbac | |||
24 | SHA1 (patch-khtml_dom_dom2_traversal.h) = b001fc3825fcfea8f25b7219057e59d5b87723e4 | 26 | SHA1 (patch-khtml_dom_dom2_traversal.h) = b001fc3825fcfea8f25b7219057e59d5b87723e4 | |
27 | SHA1 (patch-khtml_misc_AtomicString.cpp) = eff036bcd09e031651eba1e3a2136e313d184f2b | |||
25 | SHA1 (patch-kinit_CMakeLists.txt) = bcbf273d79702a4f1a617df0c86c2d5771447364 | 28 | SHA1 (patch-kinit_CMakeLists.txt) = bcbf273d79702a4f1a617df0c86c2d5771447364 | |
29 | SHA1 (patch-kinit_kinit.cpp) = 75dfe546c92169e692ddb45cd1a056a1b4042bb6 | |||
26 | SHA1 (patch-kio_CMakeLists.txt) = 3033fe7d31555e83f197f889cf1aa15949a3c14e | 30 | SHA1 (patch-kio_CMakeLists.txt) = 3033fe7d31555e83f197f889cf1aa15949a3c14e | |
31 | SHA1 (patch-kio_kfile_kopenwithdialog.cpp) = b705ed794a082bca03890d69369b4e043e90f6c5 | |||
32 | SHA1 (patch-kio_kfile_kpropertiesdialog.cpp) = 27bced17b818051c6df5bc1ea176fd9f2692caa4 | |||
27 | SHA1 (patch-kio_kssl_kopenssl.cpp) = 4d9319966f4be0b8c09501105f7664481af2834e | 33 | SHA1 (patch-kio_kssl_kopenssl.cpp) = 4d9319966f4be0b8c09501105f7664481af2834e | |
28 | SHA1 (patch-kio_kssl_kopenssl.h) = c6f27f3a8911929684d62cc96849b6171e2ade8c | 34 | SHA1 (patch-kio_kssl_kopenssl.h) = c6f27f3a8911929684d62cc96849b6171e2ade8c | |
29 | SHA1 (patch-kio_kssl_kssl.cpp) = b5ff02a2a96e667096143fec9e681cb2980aa7e3 | 35 | SHA1 (patch-kio_kssl_kssl.cpp) = b5ff02a2a96e667096143fec9e681cb2980aa7e3 | |
30 | SHA1 (patch-kio_kssl_ksslcallback.c) = f9d74b19e365ad11c7eab6706019b4631e42598a | 36 | SHA1 (patch-kio_kssl_ksslcallback.c) = f9d74b19e365ad11c7eab6706019b4631e42598a | |
31 | SHA1 (patch-kio_kssl_ksslcertchain.cpp) = f26c2d4ac8a3a107ad5a06b71df4fd9a244fdfe5 | 37 | SHA1 (patch-kio_kssl_ksslcertchain.cpp) = f26c2d4ac8a3a107ad5a06b71df4fd9a244fdfe5 | |
32 | SHA1 (patch-kio_kssl_ksslcertificate.cpp) = 177546af1bf2a770d7bb6650f7a4a1dca6f8f716 | 38 | SHA1 (patch-kio_kssl_ksslcertificate.cpp) = 177546af1bf2a770d7bb6650f7a4a1dca6f8f716 | |
33 | SHA1 (patch-kio_kssl_ksslutils.cpp) = 359075855a8582693e5e4fab9aa5ad5afbe7b4a1 | 39 | SHA1 (patch-kio_kssl_ksslutils.cpp) = 359075855a8582693e5e4fab9aa5ad5afbe7b4a1 | |
34 | SHA1 (patch-kjs_JSImmediate.h) = ecc761c7c82f711f41cf47d706c1c22d22c2980a | 40 | SHA1 (patch-kjs_JSImmediate.h) = ecc761c7c82f711f41cf47d706c1c22d22c2980a | |
35 | SHA1 (patch-kjs_date_object.h) = 25b636930f9d5055a9ce3e760e179e0816abea6a | 41 | SHA1 (patch-kjs_date_object.h) = 12a820cad0bb9a002e524e8ea4e32ac082bd3c6e | |
36 | SHA1 (patch-kjs_interpreter.cpp) = 9d400daf7d96674b8d66e1cde46dcb3615635241 | 42 | SHA1 (patch-kjs_interpreter.cpp) = 747a9d63d96cbbe5edcc4668c7db46bd4cb0f590 | |
37 | SHA1 (patch-kjs_wtf_DisallowCType.h) = 6305dd274f1478ba0fe0a6f1717451ab8e3e50d2 | 43 | SHA1 (patch-kjs_wtf_DisallowCType.h) = 6305dd274f1478ba0fe0a6f1717451ab8e3e50d2 | |
38 | SHA1 (patch-kpty_kpty.cpp) = e8fd2e7c88b8926cf5bf12deea9e6af08e0739d8 | 44 | SHA1 (patch-kpty_kpty.cpp) = e8fd2e7c88b8926cf5bf12deea9e6af08e0739d8 |
$NetBSD: patch-dnssd_servicemodel.cpp,v 1.1 2020/03/24 20:34:31 joerg Exp $
--- dnssd/servicemodel.cpp.orig 2020-03-23 22:23:18.729772347 +0000
+++ dnssd/servicemodel.cpp
@@ -87,7 +87,7 @@ QVariant ServiceModel::data(const QModel
case Host: return srv[index.row()]->hostName();
case Port: return srv[index.row()]->port();
}
- case ServicePtrRole: QVariant ret;
+ case (int)ServicePtrRole: QVariant ret;
ret.setValue(srv[index.row()]);
return ret;
}
$NetBSD: patch-kdeui_icons_kiconcache.cpp,v 1.1 2020/03/24 20:34:31 joerg Exp $
--- kdeui/icons/kiconcache.cpp.orig 2020-03-23 20:52:29.382360073 +0000
+++ kdeui/icons/kiconcache.cpp
@@ -103,7 +103,7 @@ public:
KIconCache::KIconCache()
: KPixmapCache(KDE_ICONCACHE_NAME), d(new Private(this))
{
- d->mUpdatesFile = KGlobal::dirs()->locateLocal("cache", "kpc/"KDE_ICONCACHE_NAME".updated");
+ d->mUpdatesFile = KGlobal::dirs()->locateLocal("cache", "kpc/" KDE_ICONCACHE_NAME ".updated");
// Set limit to 10 MB
setCacheLimit(10 * 1024);
}
$NetBSD: patch-khtml_misc_AtomicString.cpp,v 1.1 2020/03/24 20:34:31 joerg Exp $
--- khtml/misc/AtomicString.cpp.orig 2020-03-23 22:02:19.272387221 +0000
+++ khtml/misc/AtomicString.cpp
@@ -160,7 +160,7 @@ DOMStringImpl* AtomicString::add(const Q
return DOMStringImpl::empty();
init();
- UCharBuffer buf = { s, length };
+ UCharBuffer buf = { s, unsigned(length) };
std::pair<HashSet<DOMStringImpl*>::iterator, bool> addResult = stringTable->add<UCharBuffer, UCharBufferTranslator>(buf);
if (!addResult.second)
return *addResult.first;
@@ -180,7 +180,7 @@ DOMStringImpl* AtomicString::add(const Q
return DOMStringImpl::empty();
init();
- UCharBuffer buf = {s, length};
+ UCharBuffer buf = {s, unsigned(length)};
std::pair<HashSet<DOMStringImpl*>::iterator, bool> addResult = stringTable->add<UCharBuffer, UCharBufferTranslator>(buf);
if (!addResult.second)
return *addResult.first;
$NetBSD: patch-kinit_kinit.cpp,v 1.1 2020/03/24 20:34:31 joerg Exp $
--- kinit/kinit.cpp.orig 2020-03-23 21:41:19.609926369 +0000
+++ kinit/kinit.cpp
@@ -1478,7 +1478,7 @@ static void kdeinit_library_path()
if (display.isEmpty())
{
#if defined(Q_WS_X11) || defined(Q_WS_QWS)
- fprintf(stderr, "kdeinit4: Aborting. $"DISPLAY" is not set.\n");
+ fprintf(stderr, "kdeinit4: Aborting. $" DISPLAY " is not set.\n");
exit(255);
#endif
}
$NetBSD: patch-kio_kfile_kopenwithdialog.cpp,v 1.1 2020/03/24 20:34:31 joerg Exp $
--- kio/kfile/kopenwithdialog.cpp.orig 2020-03-23 21:21:08.509600415 +0000
+++ kio/kfile/kopenwithdialog.cpp
@@ -713,7 +713,7 @@ void KOpenWithDialog::slotHighlighted(co
// ### 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")) != 0));
d->m_terminaldirty = false; // slotTerminalToggled changed it
}
}
$NetBSD: patch-kio_kfile_kpropertiesdialog.cpp,v 1.1 2020/03/24 20:34:31 joerg Exp $
--- kio/kfile/kpropertiesdialog.cpp.orig 2020-03-23 21:17:50.440194279 +0000
+++ kio/kfile/kpropertiesdialog.cpp
@@ -3306,7 +3306,7 @@ void KDesktopPropsPlugin::slotAdvanced()
if (preferredTerminal == "konsole")
{
- terminalCloseBool = (d->m_terminalOptionStr.contains( "--noclose" ) > 0);
+ terminalCloseBool = (d->m_terminalOptionStr.contains( "--noclose" ) != 0);
w.terminalCloseCheck->setChecked(terminalCloseBool);
d->m_terminalOptionStr.remove( "--noclose");
}
@@ -1,13 +1,24 @@ | @@ -1,13 +1,24 @@ | |||
1 | $NetBSD: patch-kdecore_localization_klocale_kde.cpp,v 1.1 2012/03/19 11:28:49 markd Exp $ | 1 | $NetBSD: patch-kdecore_localization_klocale_kde.cpp,v 1.2 2020/03/24 20:34:31 joerg Exp $ | |
2 | 2 | |||
3 | --- kdecore/localization/klocale_kde.cpp.orig 2011-04-01 13:55:50.000000000 +0000 | 3 | --- kdecore/localization/klocale_kde.cpp.orig 2017-11-05 01:51:22.000000000 +0000 | |
4 | +++ kdecore/localization/klocale_kde.cpp | 4 | +++ kdecore/localization/klocale_kde.cpp | |
5 | @@ -2516,7 +2516,7 @@ QByteArray KLocalePrivate::systemCodeset | 5 | @@ -2438,8 +2438,8 @@ QString KLocalePrivate::formatLocaleTime | |
6 | ||||
7 | bool KLocalePrivate::use12Clock() const | |||
8 | { | |||
9 | - if ((timeFormat().contains(QString::fromLatin1("%I")) > 0) || | |||
10 | - (timeFormat().contains(QString::fromLatin1("%l")) > 0)) { | |||
11 | + if ((timeFormat().contains(QString::fromLatin1("%I")) != 0) || | |||
12 | + (timeFormat().contains(QString::fromLatin1("%l")) != 0)) { | |||
13 | return true; | |||
14 | } else { | |||
15 | return false; | |||
16 | @@ -2657,7 +2657,7 @@ QByteArray KLocalePrivate::systemCodeset | |||
6 | 17 | |||
7 | codeset = nl_langinfo(CODESET); | 18 | codeset = nl_langinfo(CODESET); | |
8 | 19 | |||
9 | - if ((codeset == "ANSI_X3.4-1968") || (codeset == "US-ASCII")) { | 20 | - if ((codeset == "ANSI_X3.4-1968") || (codeset == "US-ASCII")) { | |
10 | + if ((codeset == "ANSI_X3.4-1968") || (codeset == "US-ASCII") || (codeset == "646")) { | 21 | + if ((codeset == "ANSI_X3.4-1968") || (codeset == "US-ASCII") || (codeset == "646")) { | |
11 | // means ascii, "C"; QTextCodec doesn't know, so avoid warning | 22 | // means ascii, "C"; QTextCodec doesn't know, so avoid warning | |
12 | codeset = "ISO-8859-1"; | 23 | codeset = "ISO-8859-1"; | |
13 | } | 24 | } |
@@ -1,16 +1,15 @@ | @@ -1,16 +1,15 @@ | |||
1 | $NetBSD: patch-kjs_date_object.h,v 1.1 2018/02/08 10:50:44 mrg Exp $ | 1 | $NetBSD: patch-kjs_date_object.h,v 1.2 2020/03/24 20:34:31 joerg Exp $ | |
2 | 2 | |||
3 | Replace bogus forward declaration with <ctime> include. | 3 | Replace bogus forward declaration with <ctime> include. | |
4 | 4 | |||
5 | --- kjs/date_object.h.orig 2017-11-05 01:51:22.000000000 +0000 | 5 | --- kjs/date_object.h.orig 2017-11-05 01:51:22.000000000 +0000 | |
6 | +++ kjs/date_object.h | 6 | +++ kjs/date_object.h | |
7 | @@ -24,8 +24,8 @@ | 7 | @@ -24,7 +24,7 @@ | |
8 | #include "function.h" | 8 | #include "function.h" | |
9 | #include "JSWrapperObject.h" | 9 | #include "JSWrapperObject.h" | |
10 | 10 | |||
11 | -struct tm; | 11 | -struct tm; | |
12 | +#include <ctime> | 12 | +#include <ctime> | |
13 | 13 | |||
14 | namespace KJS { | 14 | namespace KJS { | |
15 | 15 | |||
16 | class FunctionPrototype; |
@@ -1,12 +1,23 @@ | @@ -1,12 +1,23 @@ | |||
1 | $NetBSD: patch-kjs_interpreter.cpp,v 1.1 2013/05/06 15:03:19 joerg Exp $ | 1 | $NetBSD: patch-kjs_interpreter.cpp,v 1.2 2020/03/24 20:34:31 joerg Exp $ | |
2 | 2 | |||
3 | --- kjs/interpreter.cpp.orig 2013-05-03 23:52:06.000000000 +0000 | 3 | --- kjs/interpreter.cpp.orig 2017-11-05 01:51:22.000000000 +0000 | |
4 | +++ kjs/interpreter.cpp | 4 | +++ kjs/interpreter.cpp | |
5 | @@ -63,6 +63,7 @@ | 5 | @@ -64,6 +64,7 @@ | |
6 | #include <math.h> | 6 | #include <math.h> | |
7 | #include <signal.h> | 7 | #include <signal.h> | |
8 | #include <stdio.h> | 8 | #include <stdio.h> | |
9 | +#include <cstdlib> | 9 | +#include <cstdlib> | |
10 | #if defined(HAVE_UNISTD_H) | 10 | #if defined(HAVE_UNISTD_H) | |
11 | #include <unistd.h> | 11 | #include <unistd.h> | |
12 | #endif | 12 | #endif | |
13 | @@ -111,8 +112,8 @@ void TimeoutChecker::startTimeoutCheck(I | |||
14 | s_executingInterpreter = interpreter; | |||
15 | ||||
16 | itimerval tv = { | |||
17 | - { interpreter->m_timeoutTime / 1000, (interpreter->m_timeoutTime % 1000) * 1000 }, | |||
18 | - { interpreter->m_timeoutTime / 1000, (interpreter->m_timeoutTime % 1000) * 1000 } | |||
19 | + { interpreter->m_timeoutTime / 1000, suseconds_t((interpreter->m_timeoutTime % 1000) * 1000) }, | |||
20 | + { interpreter->m_timeoutTime / 1000, suseconds_t((interpreter->m_timeoutTime % 1000) * 1000) } | |||
21 | }; | |||
22 | setitimer(ITIMER_REAL, &tv, &m_oldtv); | |||
23 |