X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcoreircchannel.cpp;fp=src%2Fcore%2Fcoreircchannel.cpp;h=faf249de5b2cc6b5707298bc4b3e89e70e5bacd6;hp=8bce68f4cc9ae1c71e7c6ea21a104c0bcd1b0d10;hb=e2188dc438be6f3eb0d9cdf47d28821aefe9835e;hpb=c194ed5fb3d15e14b9364f9796d3521910dc72fe diff --git a/src/core/coreircchannel.cpp b/src/core/coreircchannel.cpp index 8bce68f4..faf249de 100644 --- a/src/core/coreircchannel.cpp +++ b/src/core/coreircchannel.cpp @@ -29,7 +29,7 @@ CoreIrcChannel::CoreIrcChannel(const QString &channelname, Network *network) _cipher = nullptr; // Get the cipher key from CoreNetwork if present - CoreNetwork *coreNetwork = qobject_cast(network); + auto *coreNetwork = qobject_cast(network); if (coreNetwork) { QByteArray key = coreNetwork->readChannelCipherKey(channelname); if (!key.isEmpty()) { @@ -47,7 +47,7 @@ CoreIrcChannel::~CoreIrcChannel() // exists. There is no need to store the empty key if no cipher exists; no // key was present when instantiating and no key was set during the // channel's lifetime. - CoreNetwork *coreNetwork = qobject_cast(network()); + auto *coreNetwork = qobject_cast(network()); if (coreNetwork && _cipher) { coreNetwork->storeChannelCipherKey(name(), _cipher->key()); }