Commit a62dcf76 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Use nullptr

parent 17d15c76
......@@ -46,7 +46,7 @@ AuthDialog::AuthDialog(const QString &actionId,
const PolkitQt1::Details &details,
const PolkitQt1::Identity::List &identities,
WId parent)
: QDialog(0)
: QDialog(nullptr)
{
// KAuth is able to circumvent polkit's limitations, and manages to send the wId to the auth agent.
// If we received it, we use KWindowSystem to associate this dialog correctly.
......@@ -113,7 +113,7 @@ AuthDialog::AuthDialog(const QString &actionId,
overlaySize,
KIconLoader::DefaultState,
QStringList(),
0,
nullptr,
true);
// if we're able to load the action icon paint it over the
// key icon.
......
......@@ -36,7 +36,7 @@
PolicyKitListener::PolicyKitListener(QObject *parent)
: Listener(parent)
, m_inProgress(false)
, m_selectedUser(0)
, m_selectedUser(nullptr)
{
(void) new Polkit1AuthAgentAdaptor(this);
......
......@@ -35,7 +35,7 @@ class PolicyKitListener : public Listener
Q_OBJECT
Q_CLASSINFO("D-Bus Interface", "org.kde.Polkit1AuthAgent")
public:
PolicyKitListener(QObject *parent = 0);
PolicyKitListener(QObject *parent = nullptr);
~PolicyKitListener() override;
public slots:
......
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