diff options
author | David Robillard <d@drobilla.net> | 2024-07-17 11:01:54 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-07-17 11:47:19 -0400 |
commit | 973db12fe33bab8e6efca80deca358b4998d5eb2 (patch) | |
tree | 6ae279e5edccdde1ebaf6de9aa4a2706b0a8ec4f /src/gui | |
parent | e2bbec54b3b26173284754b786310fc7d8589ecc (diff) | |
download | ingen-973db12fe33bab8e6efca80deca358b4998d5eb2.tar.gz ingen-973db12fe33bab8e6efca80deca358b4998d5eb2.tar.bz2 ingen-973db12fe33bab8e6efca80deca358b4998d5eb2.zip |
Remove redundant casts
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/GraphBox.cpp | 3 | ||||
-rw-r--r-- | src/gui/GraphTreeWindow.cpp | 2 | ||||
-rw-r--r-- | src/gui/GraphView.cpp | 3 | ||||
-rw-r--r-- | src/gui/NewSubgraphWindow.cpp | 2 | ||||
-rw-r--r-- | src/gui/NodeMenu.cpp | 2 | ||||
-rw-r--r-- | src/gui/ObjectMenu.cpp | 2 |
6 files changed, 6 insertions, 8 deletions
diff --git a/src/gui/GraphBox.cpp b/src/gui/GraphBox.cpp index 9efba2ee..2de4fa33 100644 --- a/src/gui/GraphBox.cpp +++ b/src/gui/GraphBox.cpp @@ -931,8 +931,7 @@ GraphBox::event_animate_signals_toggled() _app->interface()->set_property( URI("ingen:/clients/this"), _app->uris().ingen_broadcast, - _app->forge().make( - static_cast<bool>(_menu_animate_signals->get_active()))); + _app->forge().make(_menu_animate_signals->get_active())); } void diff --git a/src/gui/GraphTreeWindow.cpp b/src/gui/GraphTreeWindow.cpp index b6c55b24..fa3318bf 100644 --- a/src/gui/GraphTreeWindow.cpp +++ b/src/gui/GraphTreeWindow.cpp @@ -217,7 +217,7 @@ GraphTreeWindow::event_graph_enabled_toggled(const Glib::ustring& path_str) if (_enable_signal) { _app->set_property(pm->uri(), _app->uris().ingen_enabled, - _app->forge().make(static_cast<bool>(!pm->enabled()))); + _app->forge().make(!pm->enabled())); } } diff --git a/src/gui/GraphView.cpp b/src/gui/GraphView.cpp index 969e0add..7c01c3ae 100644 --- a/src/gui/GraphView.cpp +++ b/src/gui/GraphView.cpp @@ -143,8 +143,7 @@ GraphView::process_toggled() _app->set_property(_graph->uri(), _app->uris().ingen_enabled, - _app->forge().make( - static_cast<bool>(_process_but->get_active()))); + _app->forge().make(_process_but->get_active())); } void diff --git a/src/gui/NewSubgraphWindow.cpp b/src/gui/NewSubgraphWindow.cpp index f10f8049..9ccb6904 100644 --- a/src/gui/NewSubgraphWindow.cpp +++ b/src/gui/NewSubgraphWindow.cpp @@ -119,7 +119,7 @@ NewSubgraphWindow::ok_clicked() Properties props; props.emplace(_app->uris().rdf_type, Property(_app->uris().ingen_Graph)); props.emplace(_app->uris().ingen_polyphony, _app->forge().make(int32_t(poly))); - props.emplace(_app->uris().ingen_enabled, _app->forge().make(bool(true))); + props.emplace(_app->uris().ingen_enabled, _app->forge().make(true)); _app->interface()->put( path_to_uri(path), props, Resource::Graph::INTERNAL); diff --git a/src/gui/NodeMenu.cpp b/src/gui/NodeMenu.cpp index 5559db71..83e88264 100644 --- a/src/gui/NodeMenu.cpp +++ b/src/gui/NodeMenu.cpp @@ -190,7 +190,7 @@ NodeMenu::on_menu_enabled() { _app->set_property(_object->uri(), _app->uris().ingen_enabled, - _app->forge().make(bool(_enabled_menuitem->get_active()))); + _app->forge().make(_enabled_menuitem->get_active())); } void diff --git a/src/gui/ObjectMenu.cpp b/src/gui/ObjectMenu.cpp index 56055d1c..f6966bd8 100644 --- a/src/gui/ObjectMenu.cpp +++ b/src/gui/ObjectMenu.cpp @@ -118,7 +118,7 @@ ObjectMenu::on_menu_polyphonic() _app->set_property( _object->uri(), _app->uris().ingen_polyphonic, - _app->forge().make(bool(_polyphonic_menuitem->get_active()))); + _app->forge().make(_polyphonic_menuitem->get_active())); } } |