summaryrefslogtreecommitdiffstats
path: root/src/gui/URIEntry.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-12-14 20:44:56 +0100
committerDavid Robillard <d@drobilla.net>2020-12-14 22:04:29 +0100
commit1d3af34bd3ab9b55cdb610922aac39e62fdb13a9 (patch)
treeaaee6d674c3081c933ff33eb6d1269d87208bd49 /src/gui/URIEntry.cpp
parentd10796d12fd477215fc024078c0f2d83abc6515e (diff)
downloadingen-1d3af34bd3ab9b55cdb610922aac39e62fdb13a9.tar.gz
ingen-1d3af34bd3ab9b55cdb610922aac39e62fdb13a9.tar.bz2
ingen-1d3af34bd3ab9b55cdb610922aac39e62fdb13a9.zip
Use "auto" to avoid redundancy
Diffstat (limited to 'src/gui/URIEntry.cpp')
-rw-r--r--src/gui/URIEntry.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/URIEntry.cpp b/src/gui/URIEntry.cpp
index 9d5249e8..9de9f7ce 100644
--- a/src/gui/URIEntry.cpp
+++ b/src/gui/URIEntry.cpp
@@ -46,7 +46,7 @@ URIEntry::build_value_menu()
{
World& world = _app->world();
LilvWorld* lworld = world.lilv_world();
- Gtk::Menu* menu = new Gtk::Menu();
+ auto* menu = new Gtk::Menu();
LilvNode* owl_onDatatype = lilv_new_uri(lworld, LILV_NS_OWL "onDatatype");
LilvNode* rdf_type = lilv_new_uri(lworld, LILV_NS_RDF "type");
@@ -110,7 +110,7 @@ URIEntry::build_subclass_menu(const LilvNode* klass)
return nullptr;
}
- Gtk::Menu* menu = new Gtk::Menu();
+ auto* menu = new Gtk::Menu();
// Add "header" item for choosing this class itself
add_leaf_menu_item(menu, klass, rdfs::label(world, klass));