diff options
| author | Marc Jeanmougin <marc@jeanmougin.fr> | 2019-01-02 09:41:30 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marc@jeanmougin.fr> | 2019-01-02 09:41:30 +0000 |
| commit | 169dff19d4da8d76e69b8e896aa25b0013639c03 (patch) | |
| tree | a0c070fa95188b5cde708ac285e6a2db9df4a83f /src/ui/widget/ink-select-one-action.cpp | |
| parent | Avoid creating a new document before opening an old document. (diff) | |
| download | inkscape-169dff19d4da8d76e69b8e896aa25b0013639c03.tar.gz inkscape-169dff19d4da8d76e69b8e896aa25b0013639c03.zip | |
modernize loops
Diffstat (limited to 'src/ui/widget/ink-select-one-action.cpp')
| -rw-r--r-- | src/ui/widget/ink-select-one-action.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/ui/widget/ink-select-one-action.cpp b/src/ui/widget/ink-select-one-action.cpp index 7cff5f0be..95f38b511 100644 --- a/src/ui/widget/ink-select-one-action.cpp +++ b/src/ui/widget/ink-select-one-action.cpp @@ -105,9 +105,7 @@ Gtk::Widget* InkSelectOneAction::create_menu_item_vfunc() { Gtk::RadioButton::Group group; int index = 0; auto children = _store->children(); - for (auto iter = children.begin(); iter != children.end(); ++iter) { - Gtk::TreeModel::Row row = *iter; - + for (auto row : children) { InkSelectOneActionColumns columns; Glib::ustring label = row[columns.col_label ]; Glib::ustring icon = row[columns.col_icon ]; @@ -159,9 +157,7 @@ Gtk::Widget* InkSelectOneAction::create_tool_item_vfunc() { Gtk::RadioAction::Group group; int index = 0; auto children = _store->children(); - for (auto iter = children.begin(); iter != children.end(); ++iter) { - Gtk::TreeModel::Row row = *iter; - + for (auto row : children) { InkSelectOneActionColumns columns; Glib::ustring label = row[columns.col_label ]; Glib::ustring icon = row[columns.col_icon ]; @@ -217,8 +213,8 @@ Gtk::Widget* InkSelectOneAction::create_tool_item_vfunc() { } std::vector<Gtk::CellRenderer*> cells = _combobox->get_cells(); - for (auto iter = cells.begin(); iter!= cells.end(); ++iter) { - _combobox->add_attribute (**iter, "sensitive", columns.col_sensitive); + for (auto & cell : cells) { + _combobox->add_attribute (*cell, "sensitive", columns.col_sensitive); } _combobox->set_active (_active); |
