From 37729e5b314e39fb750a3fb46a005acdb15b4ac2 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 25 Dec 2017 16:37:00 -0500 Subject: Use auto for iterators --- src/gui/Port.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/gui/Port.cpp') diff --git a/src/gui/Port.cpp b/src/gui/Port.cpp index 4f8e085e..9622a7f5 100644 --- a/src/gui/Port.cpp +++ b/src/gui/Port.cpp @@ -234,8 +234,7 @@ Port::build_enum_menu() PluginModel::ScalePoints points = block->plugin_model()->port_scale_points( model()->index()); - for (PluginModel::ScalePoints::iterator i = points.begin(); - i != points.end(); ++i) { + for (auto i = points.begin(); i != points.end(); ++i) { menu->items().push_back(Gtk::Menu_Helpers::MenuElem(i->second)); Gtk::MenuItem* menu_item = &(menu->items().back()); menu_item->signal_activate().connect( -- cgit v1.2.1