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

List:       kde-commits
Subject:    [powerdevil] /: Use nullptr
From:       Friedrich W. H. Kossebau <null () kde ! org>
Date:       2018-03-09 20:30:15
Message-ID: E1euOed-0002qa-7W () code ! kde ! org
[Download RAW message or body]

Git commit 83cabac4501e4950d604031bc180477c8a03a90f by Friedrich W. H. Kossebau.
Committed on 09/03/2018 at 19:53.
Pushed by kossebau into branch 'master'.

Use nullptr

M  +1    -1    daemon/actions/bundled/suspendsession.cpp
M  +5    -5    daemon/backends/upower/backlighthelper.cpp
M  +5    -5    daemon/backends/upower/powerdevilupowerbackend.cpp
M  +4    -4    daemon/backends/upower/udevqtclient.cpp
M  +2    -2    daemon/backends/upower/udevqtclient.h
M  +4    -4    daemon/backends/upower/udevqtdevice.cpp
M  +2    -2    daemon/backends/upower/xrandrxcbhelper.cpp
M  +3    -3    daemon/backends/upower/xrandrxcbhelper.h
M  +3    -3    daemon/kwinkscreenhelpereffect.cpp
M  +2    -2    daemon/powerdevilactionpool.cpp
M  +3    -3    daemon/powerdevilapp.cpp
M  +1    -1    daemon/powerdevilbackendinterface.h
M  +4    -4    daemon/powerdevilcore.cpp
M  +1    -1    daemon/powerdevilpolicyagent.cpp
M  +1    -1    daemon/powerdevilpolicyagent.h
M  +1    -1    kcmodule/activities/activitypage.cpp
M  +1    -1    kcmodule/activities/activitywidget.h
M  +1    -1    kcmodule/common/ErrorOverlay.h
M  +1    -1    kcmodule/common/actionconfigwidget.cpp
M  +1    -1    kcmodule/common/actioneditwidget.cpp
M  +1    -1    kcmodule/common/actioneditwidget.h
M  +1    -1    kcmodule/global/GeneralPage.cpp
M  +1    -1    kcmodule/profiles/EditPage.cpp

https://commits.kde.org/powerdevil/83cabac4501e4950d604031bc180477c8a03a90f

diff --git a/daemon/actions/bundled/suspendsession.cpp \
b/daemon/actions/bundled/suspendsession.cpp index f6a3bf6..83057ff 100644
--- a/daemon/actions/bundled/suspendsession.cpp
+++ b/daemon/actions/bundled/suspendsession.cpp
@@ -130,7 +130,7 @@ void SuspendSession::triggerImpl(const QVariantMap &args)
     }
 
     // Switch for real action
-    KJob *suspendJob = 0;
+    KJob *suspendJob = nullptr;
     switch ((Mode) (args["Type"].toUInt())) {
         case ToRamMode:
             Q_EMIT aboutToSuspend();
diff --git a/daemon/backends/upower/backlighthelper.cpp \
b/daemon/backends/upower/backlighthelper.cpp index fb5f7ed..8148b61 100644
--- a/daemon/backends/upower/backlighthelper.cpp
+++ b/daemon/backends/upower/backlighthelper.cpp
@@ -36,7 +36,7 @@
 #include <sys/types.h>
 #include <sys/sysctl.h>
 
-#define HAS_SYSCTL(n) (sysctlbyname(n, NULL, NULL, NULL, 0) == 0)
+#define HAS_SYSCTL(n) (sysctlbyname(n, nullptr, nullptr, nullptr, 0) == 0)
 #endif
 
 #define BACKLIGHT_SYSFS_PATH "/sys/class/backlight/"
@@ -154,7 +154,7 @@ void BacklightHelper::initUsingSysctl()
     }
 
     size_t len;
-    if (sysctlbyname(qPrintable(QStringLiteral("hw.acpi.video.%1.levels").arg(m_sysctlDevice)), \
NULL, &len, NULL, 0) != 0 || +    if \
(sysctlbyname(qPrintable(QStringLiteral("hw.acpi.video.%1.levels").arg(m_sysctlDevice)), \
nullptr, &len, nullptr, 0) != 0 ||  len == 0) {
         return;
     }
@@ -162,7 +162,7 @@ void BacklightHelper::initUsingSysctl()
     if (!levels) {
         return;
     }
-    if (sysctlbyname(qPrintable(QString("hw.acpi.video.%1.levels").arg(m_sysctlDevice)), \
levels, &len, NULL, 0) != 0) { +    if \
(sysctlbyname(qPrintable(QString("hw.acpi.video.%1.levels").arg(m_sysctlDevice)), \
levels, &len, nullptr, 0) != 0) {  free(levels);
         return;
     }
@@ -193,7 +193,7 @@ ActionReply BacklightHelper::brightness(const QVariantMap &args)
 
 #ifdef USE_SYSCTL
     size_t len = sizeof(int);
-    if (sysctlbyname(qPrintable(QStringLiteral("hw.acpi.video.%1.brightness").arg(m_sysctlDevice)), \
&brightness, &len, NULL, 0) != 0) { +    if \
(sysctlbyname(qPrintable(QStringLiteral("hw.acpi.video.%1.brightness").arg(m_sysctlDevice)), \
&brightness, &len, nullptr, 0) != 0) {  reply = ActionReply::HelperErrorReply();
         return reply;
     }
@@ -251,7 +251,7 @@ ActionReply BacklightHelper::setbrightness(const QVariantMap \
&args)  d1 = d2;
     }
     size_t len = sizeof(int);
-    if (sysctlbyname(qPrintable(QStringLiteral("hw.acpi.video.%1.brightness").arg(m_sysctlDevice)), \
NULL, NULL, &actual_level, len) != 0) { +    if \
(sysctlbyname(qPrintable(QStringLiteral("hw.acpi.video.%1.brightness").arg(m_sysctlDevice)), \
nullptr, nullptr, &actual_level, len) != 0) {  reply = \
ActionReply::HelperErrorReply();  return reply;
     }
diff --git a/daemon/backends/upower/powerdevilupowerbackend.cpp \
b/daemon/backends/upower/powerdevilupowerbackend.cpp index d9db790..7af7059 100644
--- a/daemon/backends/upower/powerdevilupowerbackend.cpp
+++ b/daemon/backends/upower/powerdevilupowerbackend.cpp
@@ -47,11 +47,11 @@
 
 PowerDevilUPowerBackend::PowerDevilUPowerBackend(QObject* parent)
     : BackendInterface(parent)
-    , m_displayDevice(Q_NULLPTR)
-    , m_brightnessControl(Q_NULLPTR)
-    , m_randrHelper(Q_NULLPTR)
-    , m_upowerInterface(Q_NULLPTR)
-    , m_kbdBacklight(Q_NULLPTR)
+    , m_displayDevice(nullptr)
+    , m_brightnessControl(nullptr)
+    , m_randrHelper(nullptr)
+    , m_upowerInterface(nullptr)
+    , m_kbdBacklight(nullptr)
     , m_kbdMaxBrightness(0)
     , m_lidIsPresent(false)
     , m_lidIsClosed(false)
diff --git a/daemon/backends/upower/udevqtclient.cpp \
b/daemon/backends/upower/udevqtclient.cpp index c4316d5..6c33a49 100644
--- a/daemon/backends/upower/udevqtclient.cpp
+++ b/daemon/backends/upower/udevqtclient.cpp
@@ -29,7 +29,7 @@
 namespace UdevQt {
 
 ClientPrivate::ClientPrivate(Client *q_)
-    : udev(0), monitor(0), q(q_), monitorNotifier(0)
+    : udev(nullptr), monitor(nullptr), q(q_), monitorNotifier(nullptr)
 {
 }
 
@@ -70,7 +70,7 @@ void ClientPrivate::setWatchedSubsystems(const QStringList \
&subsystemList)  QByteArray devType = subsysDevtype.midRef(ix + 1).toLatin1();
             udev_monitor_filter_add_match_subsystem_devtype(newM, \
subsystem.constData(), devType.constData());  } else {
-            udev_monitor_filter_add_match_subsystem_devtype(newM, \
subsysDevtype.toLatin1().constData(), NULL); +            \
udev_monitor_filter_add_match_subsystem_devtype(newM, \
subsysDevtype.toLatin1().constData(), nullptr);  }
     }
 
@@ -191,7 +191,7 @@ DeviceList Client::devicesByProperty(const QString &property, \
const QVariant &va  if (value.isValid()) {
         udev_enumerate_add_match_property(en, property.toLatin1().constData(), \
value.toString().toLatin1().constData());  } else {
-        udev_enumerate_add_match_property(en, property.toLatin1().constData(), \
NULL); +        udev_enumerate_add_match_property(en, \
property.toLatin1().constData(), nullptr);  }
 
     return d->deviceListFromEnumerate(en);
@@ -218,7 +218,7 @@ Device Client::deviceByDeviceFile(const QString &deviceFile)
     if (QT_STAT(deviceFile.toLatin1().constData(), &sb) != 0)
         return Device();
 
-    struct udev_device *ud = 0;
+    struct udev_device *ud = nullptr;
 
     if (S_ISBLK(sb.st_mode))
         ud = udev_device_new_from_devnum(d->udev, 'b', sb.st_rdev);
diff --git a/daemon/backends/upower/udevqtclient.h \
b/daemon/backends/upower/udevqtclient.h index 610269e..287ced0 100644
--- a/daemon/backends/upower/udevqtclient.h
+++ b/daemon/backends/upower/udevqtclient.h
@@ -40,8 +40,8 @@ class Client : public QObject
     Q_PROPERTY(QStringList watchedSubsystems READ watchedSubsystems WRITE \
setWatchedSubsystems)  
     public:
-        explicit Client(QObject *parent = 0);
-        explicit Client(const QStringList &subsystemList, QObject *parent = 0);
+        explicit Client(QObject *parent = nullptr);
+        explicit Client(const QStringList &subsystemList, QObject *parent = \
nullptr);  ~Client();
 
         QStringList watchedSubsystems() const;
diff --git a/daemon/backends/upower/udevqtdevice.cpp \
b/daemon/backends/upower/udevqtdevice.cpp index 10cf663..151feab 100644
--- a/daemon/backends/upower/udevqtdevice.cpp
+++ b/daemon/backends/upower/udevqtdevice.cpp
@@ -74,7 +74,7 @@ QString DevicePrivate::decodePropertyValue(const QByteArray \
&encoded) const  }
 
 Device::Device()
-    : d(0)
+    : d(nullptr)
 {
 }
 
@@ -83,7 +83,7 @@ Device::Device(const Device &other)
     if (other.d) {
         d = new DevicePrivate(other.d->udev);
     } else {
-        d = 0;
+        d = nullptr;
     }
 }
 
@@ -103,7 +103,7 @@ Device &Device::operator=(const Device &other)
         return *this;
     if (!other.d) {
         delete d;
-        d = 0;
+        d = nullptr;
         return *this;
     }
     if (!d) {
@@ -117,7 +117,7 @@ Device &Device::operator=(const Device &other)
 
 bool Device::isValid() const
 {
-    return (d != 0);
+    return (d != nullptr);
 }
 
 QString Device::subsystem() const
diff --git a/daemon/backends/upower/xrandrxcbhelper.cpp \
b/daemon/backends/upower/xrandrxcbhelper.cpp index 941ad87..ee8c2fe 100644
--- a/daemon/backends/upower/xrandrxcbhelper.cpp
+++ b/daemon/backends/upower/xrandrxcbhelper.cpp
@@ -101,7 +101,7 @@ void XRandRXCBHelper::init()
 //     QByteArray backlightCaps("BACKLIGHT");
 //     xcb_intern_atom(c, true, backlightCaps.length(), backlightCaps.constData());
     xcb_intern_atom_reply_t* atomReply =
-    xcb_intern_atom_reply(c, xcb_intern_atom(c, true, backlight.length(), \
backlight.constData()), NULL); +    xcb_intern_atom_reply(c, xcb_intern_atom(c, true, \
backlight.length(), backlight.constData()), nullptr);  
     //If backlight atom doesn't exist, means that no driver is actually supporting \
it  if (!atomReply) {
@@ -115,7 +115,7 @@ void XRandRXCBHelper::init()
     xcb_create_window(c, XCB_COPY_FROM_PARENT, m_window,
                       rWindow,
                       0, 0, 1, 1, 0, XCB_COPY_FROM_PARENT,
-                      XCB_COPY_FROM_PARENT, 0, NULL);
+                      XCB_COPY_FROM_PARENT, 0, nullptr);
 
     xcb_randr_select_input(c, m_window, XCB_RANDR_NOTIFY_MASK_OUTPUT_PROPERTY);
     qApp->installNativeEventFilter(this);
diff --git a/daemon/backends/upower/xrandrxcbhelper.h \
b/daemon/backends/upower/xrandrxcbhelper.h index 7487bf6..26d713f 100644
--- a/daemon/backends/upower/xrandrxcbhelper.h
+++ b/daemon/backends/upower/xrandrxcbhelper.h
@@ -43,11 +43,11 @@ class XRandRXCBHelper : public QObject, public \
QAbstractNativeEventFilter  public:
     static inline XRandRXCBHelper* self()
     {
-        static XRandRXCBHelper* s_instance = 0;
+        static XRandRXCBHelper* s_instance = nullptr;
         if (!s_instance) {
             s_instance = new XRandRXCBHelper();
             if (!s_instance->isValid()) {
-                s_instance = 0;
+                s_instance = nullptr;
             }
         }
 
@@ -71,7 +71,7 @@ private:
 
     inline xcb_connection_t *conn()
     {
-        static xcb_connection_t *s_con = NULL;
+        static xcb_connection_t *s_con = nullptr;
         if (!s_con) {
             s_con = QX11Info::connection();
         }
diff --git a/daemon/kwinkscreenhelpereffect.cpp b/daemon/kwinkscreenhelpereffect.cpp
index 5ba59da..4cd8d0a 100644
--- a/daemon/kwinkscreenhelpereffect.cpp
+++ b/daemon/kwinkscreenhelpereffect.cpp
@@ -72,10 +72,10 @@ bool KWinKScreenHelperEffect::checkValid()
     if (QX11Info::isPlatformX11()) {
         QScopedPointer<xcb_list_properties_reply_t, QScopedPointerPodDeleter> \
                propsReply(xcb_list_properties_reply(QX11Info::connection(),
             xcb_list_properties_unchecked(QX11Info::connection(), \
                QX11Info::appRootWindow()),
-        NULL));
+        nullptr));
         QScopedPointer<xcb_intern_atom_reply_t, QScopedPointerPodDeleter> \
                atomReply(xcb_intern_atom_reply(QX11Info::connection(),
             xcb_intern_atom_unchecked(QX11Info::connection(), false, 25, \
                "_KDE_KWIN_KSCREEN_SUPPORT"),
-        NULL));
+        nullptr));
 
         if (propsReply.isNull() || atomReply.isNull()) {
             return false;
@@ -127,7 +127,7 @@ bool KWinKScreenHelperEffect::nativeEventFilter(const QByteArray \
&eventType, voi  }
 
                 auto cookie = xcb_get_property(QX11Info::connection(), false, \
                QX11Info::appRootWindow(), m_atom, XCB_ATOM_CARDINAL, 0, 1);
-                QScopedPointer<xcb_get_property_reply_t, QScopedPointerPodDeleter> \
reply(xcb_get_property_reply(QX11Info::connection(), cookie, NULL)); +                \
QScopedPointer<xcb_get_property_reply_t, QScopedPointerPodDeleter> \
                reply(xcb_get_property_reply(QX11Info::connection(), cookie, \
                nullptr));
                 if (reply.isNull() || reply.data()->value_len != 1 || \
reply.data()->format != uint8_t(32)) {  return false;
                 }
diff --git a/daemon/powerdevilactionpool.cpp b/daemon/powerdevilactionpool.cpp
index 2864483..e88d3da 100644
--- a/daemon/powerdevilactionpool.cpp
+++ b/daemon/powerdevilactionpool.cpp
@@ -50,7 +50,7 @@ namespace PowerDevil
 class ActionPoolHelper
 {
 public:
-    ActionPoolHelper() : q(0) {}
+    ActionPoolHelper() : q(nullptr) {}
     ~ActionPoolHelper() {
         delete q;
     }
@@ -184,7 +184,7 @@ Action* ActionPool::loadAction(const QString& actionId, const \
KConfigGroup& grou  return retaction;
     } else {
         // Hmm... troubles in configuration. Np, let's just return 0 and let the \
                core handle this
-        return 0;
+        return nullptr;
     }
 }
 
diff --git a/daemon/powerdevilapp.cpp b/daemon/powerdevilapp.cpp
index 0086619..98030cb 100644
--- a/daemon/powerdevilapp.cpp
+++ b/daemon/powerdevilapp.cpp
@@ -44,7 +44,7 @@
 
 PowerDevilApp::PowerDevilApp(int &argc, char **argv)
     : QGuiApplication(argc, argv)
-    , m_core(Q_NULLPTR)
+    , m_core(nullptr)
 {
     migratePre512KeyboardShortcuts();
 }
@@ -105,7 +105,7 @@ void PowerDevilApp::init()
     if (!instance) {
         qCDebug(POWERDEVIL) << loader->errorString();
         qCCritical(POWERDEVIL) << "KDE Power Management System init failed!";
-        m_core->loadCore(0);
+        m_core->loadCore(nullptr);
         return;
     }
 
@@ -113,7 +113,7 @@ void PowerDevilApp::init()
     if (!interface) {
         qCDebug(POWERDEVIL) << "Failed to cast plugin instance to BackendInterface, \
                check your plugin";
         qCCritical(POWERDEVIL) << "KDE Power Management System init failed!";
-        m_core->loadCore(0);
+        m_core->loadCore(nullptr);
         return;
     }
 
diff --git a/daemon/powerdevilbackendinterface.h \
b/daemon/powerdevilbackendinterface.h index 5c4798b..5a47862 100644
--- a/daemon/powerdevilbackendinterface.h
+++ b/daemon/powerdevilbackendinterface.h
@@ -36,7 +36,7 @@ class Q_DECL_EXPORT BackendInterface : public QObject
     Q_DISABLE_COPY(BackendInterface)
 
 public:
-    explicit BackendInterface(QObject* parent = 0);
+    explicit BackendInterface(QObject* parent = nullptr);
     virtual ~BackendInterface();
 
     /**
diff --git a/daemon/powerdevilcore.cpp b/daemon/powerdevilcore.cpp
index 58ad55e..dba0f3a 100644
--- a/daemon/powerdevilcore.cpp
+++ b/daemon/powerdevilcore.cpp
@@ -487,22 +487,22 @@ void Core::emitNotification(const QString &evid, const QString \
&message, const Q  {
     if (!iconname.isEmpty()) {
       KNotification::event(evid, message, QIcon::fromTheme(iconname).pixmap(48,48),
-                           0, KNotification::CloseOnTimeout, "powerdevil");
+                           nullptr, KNotification::CloseOnTimeout, "powerdevil");
     } else {
       KNotification::event(evid, message, QPixmap(),
-                           0, KNotification::CloseOnTimeout, "powerdevil");
+                           nullptr, KNotification::CloseOnTimeout, "powerdevil");
     }
 }
 
 void Core::emitNotification(const QString &eventId, const QString &title, const \
QString &message, const QString &iconName)  {
-    KNotification::event(eventId, title, message, iconName, 0, \
KNotification::CloseOnTimeout, "powerdevil"); +    KNotification::event(eventId, \
title, message, iconName, nullptr, KNotification::CloseOnTimeout, "powerdevil");  }
 
 void Core::emitRichNotification(const QString &evid, const QString &title, const \
QString &message)  {
     KNotification::event(evid, title, message, QPixmap(),
-                         0, KNotification::CloseOnTimeout, "powerdevil");
+                         nullptr, KNotification::CloseOnTimeout, "powerdevil");
 }
 
 bool Core::emitBatteryChargePercentNotification(int currentPercent, int \
                previousPercent, const QString &udi)
diff --git a/daemon/powerdevilpolicyagent.cpp b/daemon/powerdevilpolicyagent.cpp
index d63aed9..1510267 100644
--- a/daemon/powerdevilpolicyagent.cpp
+++ b/daemon/powerdevilpolicyagent.cpp
@@ -74,7 +74,7 @@ static const QString SCREEN_LOCKER_SERVICE_NAME = \
QStringLiteral("org.freedeskto  class PolicyAgentHelper
 {
 public:
-    PolicyAgentHelper() : q(0) { }
+    PolicyAgentHelper() : q(nullptr) { }
     ~PolicyAgentHelper() {
         delete q;
     }
diff --git a/daemon/powerdevilpolicyagent.h b/daemon/powerdevilpolicyagent.h
index 65c0db5..2a94734 100644
--- a/daemon/powerdevilpolicyagent.h
+++ b/daemon/powerdevilpolicyagent.h
@@ -105,7 +105,7 @@ private Q_SLOTS:
     void onActiveSessionChanged(const QString &activeSession);
 
 private:
-    explicit PolicyAgent(QObject* parent = 0);
+    explicit PolicyAgent(QObject* parent = nullptr);
 
     void init();
     void startSessionInterruption();
diff --git a/kcmodule/activities/activitypage.cpp \
b/kcmodule/activities/activitypage.cpp index 08b740e..5b648b3 100644
--- a/kcmodule/activities/activitypage.cpp
+++ b/kcmodule/activities/activitypage.cpp
@@ -52,7 +52,7 @@ K_PLUGIN_FACTORY(PowerDevilActivitiesKCMFactory,
 K_EXPORT_PLUGIN(PowerDevilActivitiesKCMFactory("powerdevilactivitiesconfig","powerdevil"))
  
 ActivityPage::ActivityPage(QWidget *parent, const QVariantList &args)
-    : KCModule(0, parent, args)
+    : KCModule(nullptr, parent, args)
     , m_activityConsumer(new KActivities::Consumer(this))
 {
     setButtons(Apply | Help);
diff --git a/kcmodule/activities/activitywidget.h \
b/kcmodule/activities/activitywidget.h index a91952c..5d3d5ab 100644
--- a/kcmodule/activities/activitywidget.h
+++ b/kcmodule/activities/activitywidget.h
@@ -38,7 +38,7 @@ class ActivityWidget : public QWidget
 {
     Q_OBJECT
 public:
-    explicit ActivityWidget(const QString &activity, QWidget *parent = 0);
+    explicit ActivityWidget(const QString &activity, QWidget *parent = nullptr);
     virtual ~ActivityWidget();
 
 public Q_SLOTS:
diff --git a/kcmodule/common/ErrorOverlay.h b/kcmodule/common/ErrorOverlay.h
index 1b38abc..293b571 100644
--- a/kcmodule/common/ErrorOverlay.h
+++ b/kcmodule/common/ErrorOverlay.h
@@ -26,7 +26,7 @@ class Q_DECL_EXPORT ErrorOverlay : public QWidget
 {
     Q_OBJECT
 public:
-    explicit ErrorOverlay(QWidget *baseWidget, const QString &details, QWidget \
*parent = 0); +    explicit ErrorOverlay(QWidget *baseWidget, const QString &details, \
QWidget *parent = nullptr);  virtual ~ErrorOverlay();
 
 protected:
diff --git a/kcmodule/common/actionconfigwidget.cpp \
b/kcmodule/common/actionconfigwidget.cpp index bc9a6e8..1d04ec7 100644
--- a/kcmodule/common/actionconfigwidget.cpp
+++ b/kcmodule/common/actionconfigwidget.cpp
@@ -47,7 +47,7 @@ void ActionConfigWidget::addWidgets(QList<QPair<QString, QWidget*> \
> configMap)  int row = m_gridLayout->rowCount();
     row++;
 
-    QCheckBox* currentSectionCheckbox = 0;
+    QCheckBox* currentSectionCheckbox = nullptr;
 
     QList<QPair<QString, QWidget*> >::const_iterator it;
     for (it = configMap.constBegin(); it != configMap.constEnd(); ++it) {
diff --git a/kcmodule/common/actioneditwidget.cpp \
b/kcmodule/common/actioneditwidget.cpp index 6258544..6498840 100644
--- a/kcmodule/common/actioneditwidget.cpp
+++ b/kcmodule/common/actioneditwidget.cpp
@@ -44,7 +44,7 @@ ActionEditWidget::ActionEditWidget(const QString &configName, \
QWidget *parent)  {
     m_profilesConfig = KSharedConfig::openConfig("powermanagementprofilesrc", \
KConfig::SimpleConfig | KConfig::CascadeConfig);  
-    ActionConfigWidget *actionConfigWidget = new ActionConfigWidget(0);
+    ActionConfigWidget *actionConfigWidget = new ActionConfigWidget(nullptr);
     QMap< int, QList<QPair<QString, QWidget*> > > widgets;
 
     // Load all the services
diff --git a/kcmodule/common/actioneditwidget.h b/kcmodule/common/actioneditwidget.h
index 2761c52..5806122 100644
--- a/kcmodule/common/actioneditwidget.h
+++ b/kcmodule/common/actioneditwidget.h
@@ -37,7 +37,7 @@ class Q_DECL_EXPORT ActionEditWidget : public QWidget
 {
     Q_OBJECT
 public:
-    explicit ActionEditWidget(const QString &configName, QWidget *parent = 0);
+    explicit ActionEditWidget(const QString &configName, QWidget *parent = nullptr);
     virtual ~ActionEditWidget();
 
     QString configName() const;
diff --git a/kcmodule/global/GeneralPage.cpp b/kcmodule/global/GeneralPage.cpp
index 66e3d12..4920b4a 100644
--- a/kcmodule/global/GeneralPage.cpp
+++ b/kcmodule/global/GeneralPage.cpp
@@ -47,7 +47,7 @@ K_PLUGIN_FACTORY(PowerDevilGeneralKCMFactory,
                 )
 
 GeneralPage::GeneralPage(QWidget *parent, const QVariantList &args)
-        : KCModule(0, parent, args)
+        : KCModule(nullptr, parent, args)
 {
     setButtons(Apply | Help);
 
diff --git a/kcmodule/profiles/EditPage.cpp b/kcmodule/profiles/EditPage.cpp
index 5283fb6..f6434fc 100644
--- a/kcmodule/profiles/EditPage.cpp
+++ b/kcmodule/profiles/EditPage.cpp
@@ -58,7 +58,7 @@ K_PLUGIN_FACTORY(PowerDevilProfilesKCMFactory,
                 )
 
 EditPage::EditPage(QWidget *parent, const QVariantList &args)
-        : KCModule(0, parent, args)
+        : KCModule(nullptr, parent, args)
 {
     setButtons(Apply | Help | Default);
 


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

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