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

List:       kde-commits
Subject:    [muon] kded: Consistent usage of nullptr.
From:       Jonathan Thomas <echidnaman () kubuntu ! org>
Date:       2013-06-05 13:27:28
Message-ID: 20130605132728.70ADEA605A () git ! kde ! org
[Download RAW message or body]

Git commit 27a1da4a03564a5bcb5fd617f467eb4a434d6721 by Jonathan Thomas.
Committed on 05/06/2013 at 15:27.
Pushed by jmthomas into branch 'master'.

Consistent usage of nullptr.

M  +3    -3    kded/event.cpp

http://commits.kde.org/muon/27a1da4a03564a5bcb5fd617f467eb4a434d6721

diff --git a/kded/event.cpp b/kded/event.cpp
index 7b9f2fc..58d9434 100644
--- a/kded/event.cpp
+++ b/kded/event.cpp
@@ -33,7 +33,7 @@ Event::Event(QObject* parent, const QString &name)
         : QObject(parent)
         , m_name(name)
         , m_hidden(false)
-        , m_notifierItem(0)
+        , m_notifierItem(nullptr)
         , m_active(false)
         , m_verbose(false)
 {
@@ -104,7 +104,7 @@ void Event::show(const QString &icon, const QString &text, const QStringList &ac
         }
 
         m_active = true;
-        KNotification *notify = new KNotification(m_name, 0, flag);
+        KNotification *notify = new KNotification(m_name, nullptr, flag);
         notify->setComponentData(KComponentData("muon-notifier"));
 
         KIcon notifyIcon(icon);
@@ -164,7 +164,7 @@ void Event::show(const QString &icon, const QString &text, const QStringList &ac
         contextMenu->addAction(hideAction);
 
         m_notifierItem->setContextMenu(contextMenu);
-        m_notifierItem->setAssociatedWidget(NULL);
+        m_notifierItem->setAssociatedWidget(nullptr);
 
         connect(m_notifierItem, SIGNAL(activateRequested(bool,QPoint)), this, SLOT(run()));
     }
[prev in list] [next in list] [prev in thread] [next in thread] 

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