Commit 975c0b06 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Warning--

parent 91dfbe49
......@@ -28,15 +28,10 @@ class PlymouthHelper : public QObject
{
Q_OBJECT
public:
public Q_SLOTS:
ActionReply save(const QVariantMap &map);
ActionReply install(const QVariantMap &args);
ActionReply uninstall(const QVariantMap &args);
private:
};
#endif
......@@ -188,7 +188,7 @@ void KCMPlymouth::save()
KAuth::ExecuteJob *job = action.execute();
bool rc = job->exec();
if (!rc) {
KMessageBox::error(0, i18n("Unable to authenticate/execute the action: %1, %2", job->error(), job->errorString()));
KMessageBox::error(nullptr, i18n("Unable to authenticate/execute the action: %1, %2", job->error(), job->errorString()));
}
}
......@@ -205,7 +205,7 @@ void KCMPlymouth::uninstall(const QString &plugin)
KAuth::ExecuteJob *job = action.execute();
bool rc = job->exec();
if (!rc) {
KMessageBox::error(0, i18n("Unable to authenticate/execute the action: %1, %2", job->error(), job->errorString()));
KMessageBox::error(nullptr, i18n("Unable to authenticate/execute the action: %1, %2", job->error(), job->errorString()));
} else {
KConfigGroup installedCg(KSharedConfig::openConfig(QStringLiteral("kplymouththemeinstallerrc")), "DownloadedThemes");
installedCg.deleteEntry(plugin);
......
......@@ -42,8 +42,8 @@ public:
ScreenhotRole,
UninstallableRole
};
KCMPlymouth(QObject* parent, const QVariantList& args);
~KCMPlymouth();
explicit KCMPlymouth(QObject* parent, const QVariantList& args);
~KCMPlymouth() Q_DECL_OVERRIDE;
QStandardItemModel *themesModel();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment