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
/
common
/
ircuser.cpp
diff --git
a/src/common/ircuser.cpp
b/src/common/ircuser.cpp
index
52023ef
..
cf1aeda
100644
(file)
--- a/
src/common/ircuser.cpp
+++ b/
src/common/ircuser.cpp
@@
-362,7
+362,7
@@
void IrcUser::quit()
void IrcUser::channelDestroyed()
{
// private slot!
void IrcUser::channelDestroyed()
{
// private slot!
-
IrcChannel
*channel = static_cast<IrcChannel *>(sender());
+
auto
*channel = static_cast<IrcChannel *>(sender());
if (_channels.contains(channel)) {
_channels.remove(channel);
if (_channels.isEmpty() && !network()->isMe(this))
if (_channels.contains(channel)) {
_channels.remove(channel);
if (_channels.isEmpty() && !network()->isMe(this))