X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fircchannel.cpp;h=37318d9e14088682dbf511f6d82e06797fd0079a;hp=c4e45d56e8bcbcc3843f617c4717816bef26c727;hb=6eefdfc697067d184a589fc8a231b16316c09106;hpb=c194ed5fb3d15e14b9364f9796d3521910dc72fe diff --git a/src/common/ircchannel.cpp b/src/common/ircchannel.cpp index c4e45d56..37318d9e 100644 --- a/src/common/ircchannel.cpp +++ b/src/common/ircchannel.cpp @@ -191,7 +191,7 @@ void IrcChannel::joinIrcUsers(const QList &users, const QStringList & _userModes[ircuser] = sortedModes[i]; ircuser->joinChannel(this, true); - connect(ircuser, SIGNAL(nickSet(QString)), this, SLOT(ircUserNickSet(QString))); + connect(ircuser, &IrcUser::nickSet, this, selectOverload(&IrcChannel::ircUserNickSet)); // connect(ircuser, SIGNAL(destroyed()), this, SLOT(ircUserDestroyed())); // If you wonder why there is no counterpart to ircUserJoined: @@ -424,7 +424,7 @@ void IrcChannel::initSetChanModes(const QVariantMap &channelModes) void IrcChannel::ircUserDestroyed() { - IrcUser *ircUser = static_cast(sender()); + auto *ircUser = static_cast(sender()); Q_ASSERT(ircUser); _userModes.remove(ircUser); // no further propagation. @@ -434,7 +434,7 @@ void IrcChannel::ircUserDestroyed() void IrcChannel::ircUserNickSet(QString nick) { - IrcUser *ircUser = qobject_cast(sender()); + auto *ircUser = qobject_cast(sender()); Q_ASSERT(ircUser); emit ircUserNickSet(ircUser, nick); }