Verified Commit 644df6fd authored by Alexander Akulich's avatar Alexander Akulich
Browse files

Use nullptr keyword wherever it makes sense

Refactored with clang-tidy
parent a676979a
......@@ -24,7 +24,7 @@ class ApproverDaemon : public QObject, public Tp::AbstractClientApprover
{
Q_OBJECT
public:
ApproverDaemon(QObject *parent = 0);
ApproverDaemon(QObject *parent = nullptr);
protected:
void addDispatchOperation(const Tp::MethodInvocationContextPtr<> & context,
......
......@@ -39,7 +39,7 @@ ChannelApprover *ChannelApprover::create(const Tp::ChannelPtr & channel, QObject
}
Q_ASSERT(false);
return NULL;
return nullptr;
}
#include "channelapprover.moc"
......@@ -32,7 +32,7 @@ FileTransferChannelApprover::FileTransferChannelApprover(
qCDebug(APPROVER);
//notification
m_notification = new KNotification("incoming_file_transfer", 0, KNotification::Persistent);
m_notification = new KNotification("incoming_file_transfer", nullptr, KNotification::Persistent);
m_notification.data()->setComponentName(QStringLiteral("ktelepathy"));
m_notification.data()->setTitle(i18n("Incoming file transfer"));
......
......@@ -78,9 +78,9 @@ public:
static inline KAboutData aboutData()
{
KAboutData aboutData(QStringLiteral("ktp-approver"), 0,
KAboutData aboutData(QStringLiteral("ktp-approver"), nullptr,
KTP_APPROVER_VERSION,
0, KAboutLicense::LGPL,
nullptr, KAboutLicense::LGPL,
i18n("(C) 2010, Collabora Ltd."));
aboutData.addAuthor(i18n("George Kiagiadakis"),
QString(), QStringLiteral("george.kiagiadakis@collabora.co.uk"));
......
......@@ -64,7 +64,7 @@ void TextChannelApprover::onMessageReceived(const Tp::ReceivedMessage & msg)
}
if (!m_notification) {
m_notification = new KNotification("new_text_message", 0, KNotification::Persistent);
m_notification = new KNotification("new_text_message", nullptr, KNotification::Persistent);
m_notification.data()->setComponentName(QStringLiteral("ktelepathy"));
Tp::ContactPtr sender = msg.sender();
......
......@@ -35,7 +35,7 @@
#include "approverdaemon.h"
TubeChannelApprover::TubeChannelApprover(const Tp::TubeChannelPtr& channel, QObject* parent):
ChannelApprover(0),
ChannelApprover(nullptr),
m_channel(channel)
{
Q_UNUSED(parent);
......@@ -99,7 +99,7 @@ TubeChannelApprover::~TubeChannelApprover()
void TubeChannelApprover::showNotification(const QString& title, const QString& comment, const QString& icon, const Tp::ContactPtr& sender)
{
// incoming_file_transfer = defines notification sound & user preferences
m_notification = new KNotification(QLatin1String("incoming_file_transfer"), 0, KNotification::Persistent);
m_notification = new KNotification(QLatin1String("incoming_file_transfer"), nullptr, KNotification::Persistent);
m_notification.data()->setComponentName(QStringLiteral("ktelepathy"));
m_notification.data()->setTitle(title);
if (comment.contains(QLatin1String("%1"))) {
......
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