summaryrefslogtreecommitdiffstats
path: root/src/gui/Port.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/Port.cpp')
-rw-r--r--src/gui/Port.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/Port.cpp b/src/gui/Port.cpp
index 6a6cdfe2..6bb96b78 100644
--- a/src/gui/Port.cpp
+++ b/src/gui/Port.cpp
@@ -249,15 +249,15 @@ Port::build_uri_menu()
RDFS::Objects values = RDFS::instances(world, ranges);
// Add a menu item for each such class
- for (RDFS::Objects::const_iterator i = values.begin(); i != values.end(); ++i) {
- if (!i->second.empty()) {
- Glib::ustring label = world->rdf_world()->prefixes().qualify(i->first)
- + " - " + i->second;
+ for (const auto& v : values) {
+ if (!v.second.empty()) {
+ Glib::ustring label = world->rdf_world()->prefixes().qualify(v.first)
+ + " - " + v.second;
menu->items().push_back(Gtk::Menu_Helpers::MenuElem(label));
Gtk::MenuItem* menu_item = &(menu->items().back());
menu_item->signal_activate().connect(
sigc::bind(sigc::mem_fun(this, &Port::on_uri_activated),
- i->first));
+ v.first));
}
}