[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [polkit-kde-agent-1] /: Use nullptr
From:       Friedrich W. H. Kossebau <null () kde ! org>
Date:       2018-03-07 1:29:03
Message-ID: E1etNt9-00086T-N0 () code ! kde ! org
[Download RAW message or body]

Git commit a62dcf76802dac141435de812d5ba78f7c0d8b45 by Friedrich W. H. Kossebau.
Committed on 07/03/2018 at 01:09.
Pushed by kossebau into branch 'master'.

Use nullptr

M  +2    -2    AuthDialog.cpp
M  +1    -1    policykitlistener.cpp
M  +1    -1    policykitlistener.h

https://commits.kde.org/polkit-kde-agent-1/a62dcf76802dac141435de812d5ba78f7c0d8b45

diff --git a/AuthDialog.cpp b/AuthDialog.cpp
index 00cccfb..5c282f3 100644
--- a/AuthDialog.cpp
+++ b/AuthDialog.cpp
@@ -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.
diff --git a/policykitlistener.cpp b/policykitlistener.cpp
index 7f74be8..0b273e6 100644
--- a/policykitlistener.cpp
+++ b/policykitlistener.cpp
@@ -36,7 +36,7 @@
 PolicyKitListener::PolicyKitListener(QObject *parent)
         : Listener(parent)
         , m_inProgress(false)
-        , m_selectedUser(0)
+        , m_selectedUser(nullptr)
 {
     (void) new Polkit1AuthAgentAdaptor(this);
 
diff --git a/policykitlistener.h b/policykitlistener.h
index 747629a..264eab3 100644
--- a/policykitlistener.h
+++ b/policykitlistener.h
@@ -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:

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic