Use constants cbegin and cend (#876)

This commit is contained in:
Itay Cohen 2018-10-24 13:05:36 +03:00 committed by xarkes
parent 02ce3cb731
commit 3706f13f0a

View File

@ -131,7 +131,7 @@ SearchWidget::SearchWidget(MainWindow *main, QAction *action) :
ui->searchInCombo->blockSignals(true); ui->searchInCombo->blockSignals(true);
QMap<QString, QString>::const_iterator mapIter; QMap<QString, QString>::const_iterator mapIter;
for (mapIter = kSearchBoundariesValues.begin(); mapIter != kSearchBoundariesValues.end(); ++mapIter) for (mapIter = kSearchBoundariesValues.cbegin(); mapIter != kSearchBoundariesValues.cend(); ++mapIter)
ui->searchInCombo->addItem(mapIter.value(), mapIter.key()); ui->searchInCombo->addItem(mapIter.value(), mapIter.key());
ui->searchInCombo->blockSignals(false); ui->searchInCombo->blockSignals(false);