From 3706f13f0ac560aa636ba32b98e6b90c934ee571 Mon Sep 17 00:00:00 2001 From: Itay Cohen Date: Wed, 24 Oct 2018 13:05:36 +0300 Subject: [PATCH] Use constants cbegin and cend (#876) --- src/widgets/SearchWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/SearchWidget.cpp b/src/widgets/SearchWidget.cpp index 9cb57370..2bfa30d2 100644 --- a/src/widgets/SearchWidget.cpp +++ b/src/widgets/SearchWidget.cpp @@ -131,7 +131,7 @@ SearchWidget::SearchWidget(MainWindow *main, QAction *action) : ui->searchInCombo->blockSignals(true); QMap::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->blockSignals(false);