Fix Clang-10 warnings

This commit is contained in:
Flössie
2020-04-02 13:23:57 +02:00
parent 29596bb457
commit 8886402e93
5 changed files with 14 additions and 14 deletions

View File

@@ -182,7 +182,7 @@ Gtk::TreeIter ProfileStoreComboBox::findRowFromEntry (const ProfileStoreEntry *p
Gtk::TreeIter ProfileStoreComboBox::findRowFromFullPath_ (Gtk::TreeModel::Children childs, int parentFolderId, const Glib::ustring &name) const
{
for (const auto iter : childs) {
for (const auto& iter : childs) {
const Gtk::TreeModel::Row row = *iter;
// Hombre: is there a smarter way of knowing if this row has childs?
const ProfileStoreEntry *pse = row[methodColumns.profileStoreEntry];
@@ -309,7 +309,7 @@ Gtk::TreeIter ProfileStoreComboBox::getRowFromLabel (const Glib::ustring &name)
const Gtk::TreeModel::Children childs = refTreeModel->children();
if (!name.empty()) {
for (const auto iter : childs) {
for (const auto& iter : childs) {
const Gtk::TreeModel::Row currRow = *iter;
const ProfileStoreEntry *pse = currRow[methodColumns.profileStoreEntry];