projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
modernize: Use auto where the type is clear from context
[quassel.git]
/
src
/
core
/
coreircchannel.cpp
diff --git
a/src/core/coreircchannel.cpp
b/src/core/coreircchannel.cpp
index
8bce68f
..
faf249d
100644
(file)
--- 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
_cipher = nullptr;
// Get the cipher key from CoreNetwork if present
-
CoreNetwork
*coreNetwork = qobject_cast<CoreNetwork *>(network);
+
auto
*coreNetwork = qobject_cast<CoreNetwork *>(network);
if (coreNetwork) {
QByteArray key = coreNetwork->readChannelCipherKey(channelname);
if (!key.isEmpty()) {
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.
// 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<CoreNetwork *>(network());
+
auto
*coreNetwork = qobject_cast<CoreNetwork *>(network());
if (coreNetwork && _cipher) {
coreNetwork->storeChannelCipherKey(name(), _cipher->key());
}
if (coreNetwork && _cipher) {
coreNetwork->storeChannelCipherKey(name(), _cipher->key());
}