X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fircchannel.cpp;h=c4e45d56e8bcbcc3843f617c4717816bef26c727;hp=09323067151fbfec4da59e944413a8830933c6f2;hb=c194ed5fb3d15e14b9364f9796d3521910dc72fe;hpb=299bb29099bdfac07f6b318b62f5f4c50d7493e3 diff --git a/src/common/ircchannel.cpp b/src/common/ircchannel.cpp index 09323067..c4e45d56 100644 --- a/src/common/ircchannel.cpp +++ b/src/common/ircchannel.cpp @@ -30,7 +30,6 @@ #include -INIT_SYNCABLE_OBJECT(IrcChannel) IrcChannel::IrcChannel(const QString &channelname, Network *network) : SyncableObject(network), _initialized(false), @@ -38,24 +37,19 @@ IrcChannel::IrcChannel(const QString &channelname, Network *network) _topic(QString()), _encrypted(false), _network(network), - _codecForEncoding(0), - _codecForDecoding(0) + _codecForEncoding(nullptr), + _codecForDecoding(nullptr) { setObjectName(QString::number(network->networkId().toInt()) + "/" + channelname); } -IrcChannel::~IrcChannel() -{ -} - - // ==================== // PUBLIC: // ==================== bool IrcChannel::isKnownUser(IrcUser *ircuser) const { - if (ircuser == 0) { + if (ircuser == nullptr) { qWarning() << "Channel" << name() << "received IrcUser Nullpointer!"; return false; } @@ -242,7 +236,7 @@ void IrcChannel::part(IrcUser *ircuser) ircuser->partChannel(this); // If you wonder why there is no counterpart to ircUserParted: // the joins are propagted by the ircuser. The signal ircUserParted is only for convenience - disconnect(ircuser, 0, this, 0); + disconnect(ircuser, nullptr, this, nullptr); emit ircUserParted(ircuser); if (network()->isMe(ircuser) || _userModes.isEmpty()) { @@ -251,7 +245,7 @@ void IrcChannel::part(IrcUser *ircuser) QList users = _userModes.keys(); _userModes.clear(); foreach(IrcUser *user, users) { - disconnect(user, 0, this, 0); + disconnect(user, nullptr, this, nullptr); user->partChannel(this); } emit parted();