X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcoresession.cpp;h=ab4859b29f5a0f5671f6d9450325640e2f303a53;hp=faec85debf102536096d0965d226f565f69a74a9;hb=e2188dc438be6f3eb0d9cdf47d28821aefe9835e;hpb=c194ed5fb3d15e14b9364f9796d3521910dc72fe diff --git a/src/core/coresession.cpp b/src/core/coresession.cpp index faec85de..ab4859b2 100644 --- a/src/core/coresession.cpp +++ b/src/core/coresession.cpp @@ -275,7 +275,7 @@ void CoreSession::addClient(InternalPeer *peer) void CoreSession::removeClient(Peer *peer) { - RemotePeer *p = qobject_cast(peer); + auto *p = qobject_cast(peer); if (p) quInfo() << qPrintable(tr("Client")) << p->description() << qPrintable(tr("disconnected (UserId: %1).").arg(user().toInt())); _coreInfo->setConnectedClientData(signalProxy()->peerCount(), signalProxy()->peerData()); @@ -344,7 +344,7 @@ void CoreSession::recvMessageFromServer(NetworkId networkId, Message::Type type, void CoreSession::recvStatusMsgFromServer(QString msg) { - CoreNetwork *net = qobject_cast(sender()); + auto *net = qobject_cast(sender()); Q_ASSERT(net); emit displayStatusMsg(net->networkName(), msg); } @@ -562,7 +562,7 @@ const QString CoreSession::strictCompliantIdent(const CoreIdentity *identity) { void CoreSession::createIdentity(const CoreIdentity &identity) { - CoreIdentity *coreIdentity = new CoreIdentity(identity, this); + auto *coreIdentity = new CoreIdentity(identity, this); _identities[identity.id()] = coreIdentity; // CoreIdentity has its own synchronize method since its "private" sslManager needs to be synced as well coreIdentity->synchronize(signalProxy()); @@ -573,7 +573,7 @@ void CoreSession::createIdentity(const CoreIdentity &identity) void CoreSession::updateIdentityBySender() { - CoreIdentity *identity = qobject_cast(sender()); + auto *identity = qobject_cast(sender()); if (!identity) return; Core::updateIdentity(user(), *identity);