Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.2
plasma5-pk-updates
0002-Fix-usage-of-0-for-null-pointer-constants....
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0002-Fix-usage-of-0-for-null-pointer-constants.patch of Package plasma5-pk-updates
From 43001fe8b62fe14a728f9d38a2d313b119058ff6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Br=C3=BCns?= <stefan.bruens@rwth-aachen.de> Date: Thu, 20 Jun 2019 03:31:23 +0200 Subject: [PATCH 2/7] Fix usage of 0 for null pointer constants Summary: Depends on D21972 Reviewers: lukas, jgrulich Differential Revision: https://phabricator.kde.org/D21973 --- src/declarative/pkupdates.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/declarative/pkupdates.cpp b/src/declarative/pkupdates.cpp index 9fdb538..0832551 100644 --- a/src/declarative/pkupdates.cpp +++ b/src/declarative/pkupdates.cpp @@ -395,7 +395,7 @@ void PkUpdates::onFinished(PackageKit::Transaction::Exit status, uint runtime) if (upCount > 0) { KNotification::event(KNotification::Notification, i18n("Software Updates Available"), i18np("You have 1 new update", "You have %1 new updates", upCount), - s_pkUpdatesIconName, 0, KNotification::Persistent); + s_pkUpdatesIconName, nullptr, KNotification::Persistent); } } else { qCDebug(PLASMA_PK_UPDATES) << "Check updates transaction didn't finish successfully"; @@ -418,7 +418,7 @@ void PkUpdates::onFinished(PackageKit::Transaction::Exit status, uint runtime) qCDebug(PLASMA_PK_UPDATES) << "Update packages transaction finished successfully"; KNotification::event(KNotification::Notification, i18n("Updates Installed"), i18np("Successfully updated %1 package", "Successfully updated %1 packages", packages.count()), - s_pkUpdatesIconName, 0, KNotification::Persistent); + s_pkUpdatesIconName, nullptr, KNotification::Persistent); emit updatesInstalled(); } else { qCDebug(PLASMA_PK_UPDATES) << "Update packages transaction didn't finish successfully"; @@ -445,7 +445,7 @@ void PkUpdates::onErrorCode(PackageKit::Transaction::Error error, const QString return; KNotification::event(KNotification::Error, i18n("Update Error"), details, - s_pkUpdatesIconName, 0, KNotification::Persistent); + s_pkUpdatesIconName, nullptr, KNotification::Persistent); } void PkUpdates::onRequireRestart(PackageKit::Transaction::Restart type, const QString &packageID) -- 2.21.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor