OSDN Git Service
(root)
/
kde
/
kde-extraapps.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78209da
)
kuassel: use loop-local varible
author
Ivailo Monev
<xakepa10@laimg.moc>
Sat, 4 Jan 2020 14:06:42 +0000
(14:06 +0000)
committer
Ivailo Monev
<xakepa10@laimg.moc>
Sat, 4 Jan 2020 14:06:42 +0000
(14:06 +0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
kuassel/src/common/ircuser.cpp
patch
|
blob
|
history
diff --git
a/kuassel/src/common/ircuser.cpp
b/kuassel/src/common/ircuser.cpp
index
ccdd03c
..
f42ba6f
100644
(file)
--- a/
kuassel/src/common/ircuser.cpp
+++ b/
kuassel/src/common/ircuser.cpp
@@
-77,8
+77,7
@@
QDateTime IrcUser::idleTime()
QStringList IrcUser::channels() const
{
QStringList chanList;
- IrcChannel *channel;
- foreach(channel, _channels) {
+ foreach(const IrcChannel *channel, _channels) {
chanList << channel->name();
}
return chanList;