diff options
author | David Robillard <d@drobilla.net> | 2017-12-25 15:26:48 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2017-12-25 16:26:13 -0500 |
commit | 15b3b0e9f8823752f80c7e597a70749813e61c79 (patch) | |
tree | 3f324c6e2a455be8b929456dadbf06520889d435 /src/gui/NodeModule.cpp | |
parent | d6a9571641bcb34acb3521feb08eea33195fd9ca (diff) | |
download | ingen-15b3b0e9f8823752f80c7e597a70749813e61c79.tar.gz ingen-15b3b0e9f8823752f80c7e597a70749813e61c79.tar.bz2 ingen-15b3b0e9f8823752f80c7e597a70749813e61c79.zip |
Always use braces
Diffstat (limited to 'src/gui/NodeModule.cpp')
-rw-r--r-- | src/gui/NodeModule.cpp | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/gui/NodeModule.cpp b/src/gui/NodeModule.cpp index d3256178..6bc9cfcb 100644 --- a/src/gui/NodeModule.cpp +++ b/src/gui/NodeModule.cpp @@ -145,16 +145,19 @@ NodeModule::create(GraphCanvas& canvas, ? new SubgraphModule(canvas, graph) : new NodeModule(canvas, block); - for (const auto& p : block->properties()) + for (const auto& p : block->properties()) { ret->property_changed(p.first, p.second); + } - for (const auto& p : block->ports()) + for (const auto& p : block->ports()) { ret->new_port_view(p); + } ret->set_stacked(block->polyphonic()); - if (human) + if (human) { ret->show_human_names(human); // FIXME: double port iteration + } return ret; } @@ -186,8 +189,9 @@ NodeModule::show_human_names(bool b) } else { Glib::ustring hn = block()->plugin_model()->port_human_name( port->model()->index()); - if (!hn.empty()) + if (!hn.empty()) { label = hn; + } } } (*i)->set_label(label.c_str()); @@ -232,8 +236,9 @@ NodeModule::port_value_changed(uint32_t index, const Atom& value) void NodeModule::plugin_changed() { - for (iterator p = begin(); p != end(); ++p) + for (iterator p = begin(); p != end(); ++p) { dynamic_cast<Ingen::GUI::Port*>(*p)->update_metadata(); + } } void @@ -317,8 +322,9 @@ NodeModule::port(SPtr<const PortModel> model) { for (iterator p = begin(); p != end(); ++p) { Port* const port = dynamic_cast<Port*>(*p); - if (port->model() == model) + if (port->model() == model) { return port; + } } return nullptr; } |