<table><tr><td style="">kossebau reopened this revision.<br />kossebau added a comment.<br />This revision is now accepted and ready to land.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D3987" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p>Seems the porting script had a few wrong matches, where 0 values for enums were misinterpreted as pointer:</p>
<p>E.g.</p>
<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">@@ -1015 +1015 @@ void KWindowSystemPrivateX11::setShowingDesktop(bool showing)
- NETRootInfo info(QX11Info::connection(), 0, NET::WM2ShowingDesktop);
+ NETRootInfo info(QX11Info::connection(), nullptr, NET::WM2ShowingDesktop);
@@ -1021 +1021 @@ void KWindowSystemPrivateX11::setUserTime(WId win, long time)
- NETWinInfo info(QX11Info::connection(), win, QX11Info::appRootWindow(), 0, 0);
+ NETWinInfo info(QX11Info::connection(), win, QX11Info::appRootWindow(), nullptr, nullptr);</pre></div>
<p>or</p>
<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="diff" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);"><span style="color: #a00000">--- a/src/kdeui/kprogressdialog.h</span>
<span style="color: #00a000">+++ b/src/kdeui/kprogressdialog.h</span>
<span style="color: #800080">@@ -63,2 +63,2 @@ public:</span>
<span style="color: #a00000">- explicit KProgressDialog(QWidget *parent = 0, const QString &caption = QString(),</span>
<span style="color: #a00000">- const QString &text = QString(), Qt::WindowFlags flags = 0);</span>
<span style="color: #00a000">+ explicit KProgressDialog(QWidget *parent = nullptr, const QString &caption = QString(),</span>
<span style="color: #00a000">+ const QString &text = QString(), Qt::WindowFlags flags = nullptr);</span></pre></div>
<p>or</p>
<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">@@ -2048 +2048 @@ void KUrlTest::testQueryItem()
- QCOMPARE(QStringList(queryUrl.queryItems(0).keys()).join(", "),
+ QCOMPARE(QStringList(queryUrl.queryItems(nullptr).keys()).join(", "),</pre></div>
<p>or</p>
<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="diff" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);"><span style="color: #a00000">--- a/src/kdecore/kdatetimeformatter_p.h</span>
<span style="color: #00a000">+++ b/src/kdecore/kdatetimeformatter_p.h</span>
<span style="color: #800080">@@ -49 +49 @@ public:</span>
<span style="color: #a00000">- KLocale::TimeFormatOptions timeOptions = 0,</span>
<span style="color: #00a000">+ KLocale::TimeFormatOptions timeOptions = nullptr,</span></pre></div>
<p>Just a few random hits I saw in the "9000 lines in total" file, no time to scan everything.<br />
Sorry for the late notification, only stumbled now about similar issues in KDevelop code and assumed a similar script to be used here ;)</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R280 Prison</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D3987" rel="noreferrer">https://phabricator.kde.org/D3987</a></div></div><br /><div><strong>EMAIL PREFERENCES</strong><div><a href="https://phabricator.kde.org/settings/panel/emailpreferences/" rel="noreferrer">https://phabricator.kde.org/settings/panel/emailpreferences/</a></div></div><br /><div><strong>To: </strong>kfunk, Frameworks, dfaure<br /><strong>Cc: </strong>kossebau, dfaure, graesslin<br /></div>