Commit c9c85ad3 authored by Laurent Montel's avatar Laurent Montel 😁 Committed by Pali Rohár

USe some nullptr

parent f0f01f64
......@@ -256,7 +256,7 @@ void ChatSessionMembersListModel::slotSessionClosed()
{
if (d->session) {
disconnect(d->session, 0, this, 0);
d->session = 0;
d->session = nullptr;
reset();
}
}
......
......@@ -191,11 +191,9 @@ Group *ContactList::findGroup(const QString &displayName, int type)
{
if (type == Group::Temporary) {
return Group::temporary();
}
if (type == Group::TopLevel) {
} else if (type == Group::TopLevel) {
return Group::topLevel();
}
if (type == Group::Offline) {
} else if (type == Group::Offline) {
return Group::offline();
}
......
......@@ -186,7 +186,7 @@ void IdentityManager::removeIdentity(Identity *identity)
configgroup->deleteGroup();
configgroup->sync();
if (d->defaultIdentity == identity) {
d->defaultIdentity = 0;
d->defaultIdentity = nullptr;
}
delete identity;
}
......
......@@ -47,7 +47,7 @@ public:
class MessageHandlerChain::Private
{
public:
Private() : first(0)
Private() : first(nullptr)
{
}
......
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