Commit e9b26e09 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Don't use nullptr as flag value

parent 3d628e42
...@@ -172,7 +172,7 @@ void UpdateModel::checkResources(const QList<AbstractResource*>& resource, bool ...@@ -172,7 +172,7 @@ void UpdateModel::checkResources(const QList<AbstractResource*>& resource, bool
Qt::ItemFlags UpdateModel::flags(const QModelIndex &index) const Qt::ItemFlags UpdateModel::flags(const QModelIndex &index) const
{ {
if (!index.isValid()) if (!index.isValid())
return nullptr; return Qt::NoItemFlags;
return Qt::ItemIsEnabled | Qt::ItemIsSelectable; return Qt::ItemIsEnabled | Qt::ItemIsSelectable;
} }
......
...@@ -47,7 +47,7 @@ int main(int argc, char** argv) ...@@ -47,7 +47,7 @@ int main(int argc, char** argv)
NotifierItem notifier; NotifierItem notifier;
bool hide = false; bool hide = false;
KDBusService::StartupOptions startup = nullptr; KDBusService::StartupOptions startup = {};
{ {
KAboutData about(QStringLiteral("DiscoverNotifier"), i18n("Discover Notifier"), version, i18n("System update status notifier"), KAboutData about(QStringLiteral("DiscoverNotifier"), i18n("Discover Notifier"), version, i18n("System update status notifier"),
KAboutLicense::GPL, i18n("© 2010-2019 Plasma Development Team")); KAboutLicense::GPL, i18n("© 2010-2019 Plasma Development Team"));
......
Markdown is supported
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