summaryrefslogtreecommitdiffstats
path: root/ganv/Module.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-04-26 16:49:15 +0000
committerDavid Robillard <d@drobilla.net>2014-04-26 16:49:15 +0000
commit65b14544b89afc3a7d3a7de57e6ef15ca8165bd0 (patch)
treeaff9e8f19197c83df67ff723ea154b7573880cdb /ganv/Module.hpp
parentfb3498abb00ed3cf5c5938fcb1bffef163674274 (diff)
downloadganv-65b14544b89afc3a7d3a7de57e6ef15ca8165bd0.tar.gz
ganv-65b14544b89afc3a7d3a7de57e6ef15ca8165bd0.tar.bz2
ganv-65b14544b89afc3a7d3a7de57e6ef15ca8165bd0.zip
Clean up Ganv API.
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5367 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'ganv/Module.hpp')
-rw-r--r--ganv/Module.hpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/ganv/Module.hpp b/ganv/Module.hpp
index 21deb91..ef73621 100644
--- a/ganv/Module.hpp
+++ b/ganv/Module.hpp
@@ -105,11 +105,7 @@ public:
const_iterator back() const { return iterator(const_cast<GanvModule*>(gobj()), num_ports() - 1); }
void embed(Gtk::Widget* widget) {
- if (widget) {
- ganv_module_embed(gobj(), widget->gobj());
- } else {
- ganv_module_embed(gobj(), NULL);
- }
+ ganv_module_embed(gobj(), widget ? widget->gobj() : NULL);
}
Port* get_port(guint index) {