diff options
author | David Robillard <d@drobilla.net> | 2017-12-25 13:59:47 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2017-12-25 16:26:13 -0500 |
commit | d6a9571641bcb34acb3521feb08eea33195fd9ca (patch) | |
tree | 5c28e2800d829b7b1896e2fcbe3f8870b88e039d /src/gui/Port.cpp | |
parent | 25177612b20f7d3ebd4138fed9cd9acffec7e756 (diff) | |
download | ingen-d6a9571641bcb34acb3521feb08eea33195fd9ca.tar.gz ingen-d6a9571641bcb34acb3521feb08eea33195fd9ca.tar.bz2 ingen-d6a9571641bcb34acb3521feb08eea33195fd9ca.zip |
Use nullptr
Diffstat (limited to 'src/gui/Port.cpp')
-rw-r--r-- | src/gui/Port.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/Port.cpp b/src/gui/Port.cpp index 88eb8050..28c3c6af 100644 --- a/src/gui/Port.cpp +++ b/src/gui/Port.cpp @@ -163,7 +163,7 @@ Port::update_metadata() bool Port::show_menu(GdkEventButton* ev) { - PortMenu* menu = NULL; + PortMenu* menu = nullptr; WidgetFactory::get_widget_derived("object_menu", menu); if (!menu) { _app.log().error("Failed to load port menu widget\n"); @@ -266,7 +266,7 @@ Port::build_uri_menu() const Atom& designation_atom = model()->get_property( _app.uris().lv2_designation); if (!designation_atom.is_valid()) { - return NULL; + return nullptr; } LilvNode* designation = lilv_new_uri( @@ -277,7 +277,7 @@ Port::build_uri_menu() // Get every class in the range of the port's property RDFS::URISet ranges; LilvNodes* range = lilv_world_find_nodes( - world->lilv_world(), designation, rdfs_range, NULL); + world->lilv_world(), designation, rdfs_range, nullptr); LILV_FOREACH(nodes, r, range) { ranges.insert(Raul::URI(lilv_node_as_string(lilv_nodes_get(range, r)))); } @@ -305,7 +305,7 @@ Port::build_uri_menu() bool Port::on_event(GdkEvent* ev) { - GraphBox* box = NULL; + GraphBox* box = nullptr; switch (ev->type) { case GDK_ENTER_NOTIFY: _entered = true; |