X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fircuser.cpp;h=168370063e3dd812415f2afc598c0ad5b7ecd17e;hp=18a066b56db2a5e7200ca817180de3b76a5145c3;hb=39328183a6a87c6eb10a9dbbffcd5d65bf154a1f;hpb=d4b81a6d777de45611034b26bd89973d19e60c96 diff --git a/src/common/ircuser.cpp b/src/common/ircuser.cpp index 18a066b5..16837006 100644 --- a/src/common/ircuser.cpp +++ b/src/common/ircuser.cpp @@ -43,8 +43,8 @@ IrcUser::IrcUser(const QString &hostmask, Network *network) : SyncableObject(net _whoisServiceReply(), _encrypted(false), _network(network), - _codecForEncoding(0), - _codecForDecoding(0) + _codecForEncoding(nullptr), + _codecForDecoding(nullptr) { updateObjectName(); _lastAwayMessageTime.setTimeSpec(Qt::UTC); @@ -328,7 +328,7 @@ void IrcUser::partChannel(IrcChannel *channel) { if (_channels.contains(channel)) { _channels.remove(channel); - disconnect(channel, 0, this, 0); + disconnect(channel, nullptr, this, nullptr); channel->part(this); QString channelName = channel->name(); SYNC_OTHER(partChannel, ARG(channelName)) @@ -341,7 +341,7 @@ void IrcUser::partChannel(IrcChannel *channel) void IrcUser::partChannel(const QString &channelname) { IrcChannel *channel = network()->ircChannel(channelname); - if (channel == 0) { + if (channel == nullptr) { qWarning() << "IrcUser::partChannel(): received part for unknown Channel" << channelname; } else { @@ -355,7 +355,7 @@ void IrcUser::quit() QList channels = _channels.toList(); _channels.clear(); foreach(IrcChannel *channel, channels) { - disconnect(channel, 0, this, 0); + disconnect(channel, nullptr, this, nullptr); channel->part(this); } network()->removeIrcUser(this);