aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/channelsjoin/ChannelsJoinDialog.cpp
diff options
context:
space:
mode:
authorGravatar Alexey Sokolov2016-04-30 18:48:40 +0100
committerGravatar Alexey Sokolov2016-04-30 18:50:45 +0100
commit97ecdf6a1b7f95bc1b342b3eaf141cd460249680 (patch)
treedfa139170f95eeda51f241580cc019ab0f4684d8 /src/modules/channelsjoin/ChannelsJoinDialog.cpp
parentApply clang-tidy: modernize-use-default (diff)
downloadKVIrc-97ecdf6a1b7f95bc1b342b3eaf141cd460249680.tar.gz
KVIrc-97ecdf6a1b7f95bc1b342b3eaf141cd460249680.tar.bz2
KVIrc-97ecdf6a1b7f95bc1b342b3eaf141cd460249680.zip
Apply clang-tidy: modernize-loop-convert
Diffstat (limited to 'src/modules/channelsjoin/ChannelsJoinDialog.cpp')
-rw-r--r--src/modules/channelsjoin/ChannelsJoinDialog.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/modules/channelsjoin/ChannelsJoinDialog.cpp b/src/modules/channelsjoin/ChannelsJoinDialog.cpp
index 6e89eb6c0..6055c8703 100644
--- a/src/modules/channelsjoin/ChannelsJoinDialog.cpp
+++ b/src/modules/channelsjoin/ChannelsJoinDialog.cpp
@@ -209,10 +209,10 @@ void ChannelsJoinDialog::fillListView()
hdr->setText(0, __tr2qs("Current Network"));
hdr->setExpanded(true);
- for(QStringList::Iterator it = pList->begin(); it != pList->end(); ++it)
+ for(auto & it : *pList)
{
chld = new QTreeWidgetItem(hdr, RecentChannelItem);
- chld->setText(0, *it);
+ chld->setText(0, it);
chld->setIcon(0, *(g_pIconManager->getSmallIcon(KviIconManager::Channel)));
}
hdr->sortChildren(0, Qt::AscendingOrder);
@@ -234,9 +234,8 @@ void ChannelsJoinDialog::fillListView()
for(QStringList * pChans = pDict->first(); pChans; pChans = pDict->next())
{
- for(QStringList::Iterator it = pChans->begin(); it != pChans->end(); ++it)
+ for(auto chan : *pChans)
{
- QString chan = *it;
if(hNoDuplicates.contains(chan.toLower()))
continue;
hNoDuplicates.insert(chan.toLower(), 1);