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
/
ircchannel.cpp
diff --git
a/src/common/ircchannel.cpp
b/src/common/ircchannel.cpp
index
dd47f85
..
7bb83ed
100644
(file)
--- a/
src/common/ircchannel.cpp
+++ b/
src/common/ircchannel.cpp
@@
-44,11
+44,6
@@
IrcChannel::IrcChannel(const QString &channelname, Network *network)
}
}
-IrcChannel::~IrcChannel()
-{
-}
-
-
// ====================
// PUBLIC:
// ====================
// ====================
// PUBLIC:
// ====================
@@
-429,7
+424,7
@@
void IrcChannel::initSetChanModes(const QVariantMap &channelModes)
void IrcChannel::ircUserDestroyed()
{
void IrcChannel::ircUserDestroyed()
{
-
IrcUser
*ircUser = static_cast<IrcUser *>(sender());
+
auto
*ircUser = static_cast<IrcUser *>(sender());
Q_ASSERT(ircUser);
_userModes.remove(ircUser);
// no further propagation.
Q_ASSERT(ircUser);
_userModes.remove(ircUser);
// no further propagation.
@@
-439,7
+434,7
@@
void IrcChannel::ircUserDestroyed()
void IrcChannel::ircUserNickSet(QString nick)
{
void IrcChannel::ircUserNickSet(QString nick)
{
-
IrcUser
*ircUser = qobject_cast<IrcUser *>(sender());
+
auto
*ircUser = qobject_cast<IrcUser *>(sender());
Q_ASSERT(ircUser);
emit ircUserNickSet(ircUser, nick);
}
Q_ASSERT(ircUser);
emit ircUserNickSet(ircUser, nick);
}