diff options
| author | 2016-04-30 18:48:40 +0100 | |
|---|---|---|
| committer | 2016-04-30 18:50:45 +0100 | |
| commit | 97ecdf6a1b7f95bc1b342b3eaf141cd460249680 (patch) | |
| tree | dfa139170f95eeda51f241580cc019ab0f4684d8 /src/modules/channelsjoin | |
| parent | Apply clang-tidy: modernize-use-default (diff) | |
| download | KVIrc-97ecdf6a1b7f95bc1b342b3eaf141cd460249680.tar.gz KVIrc-97ecdf6a1b7f95bc1b342b3eaf141cd460249680.tar.bz2 KVIrc-97ecdf6a1b7f95bc1b342b3eaf141cd460249680.zip | |
Apply clang-tidy: modernize-loop-convert
Diffstat (limited to 'src/modules/channelsjoin')
| -rw-r--r-- | src/modules/channelsjoin/ChannelsJoinDialog.cpp | 7 |
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); |
