diff options
author | Robin Gareus <robin@gareus.org> | 2014-12-08 18:46:54 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-12-08 18:47:10 +0100 |
commit | 8455ebce909baebe51b530d949cfd194693bf150 (patch) | |
tree | f5696d67fc0fca4a159eba3a26198209b60b6dc3 /gtk2_ardour/ardour_ui_ed.cc | |
parent | 894192ca23d010fed45972113fcefae6a40977fd (diff) |
noop, simplify code.
(!mixer || !editor) are checked at the top of the funtion
and also used without checks further down.
Diffstat (limited to 'gtk2_ardour/ardour_ui_ed.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui_ed.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/ardour_ui_ed.cc b/gtk2_ardour/ardour_ui_ed.cc index 275d681603..e442e8dda4 100644 --- a/gtk2_ardour/ardour_ui_ed.cc +++ b/gtk2_ardour/ardour_ui_ed.cc @@ -596,13 +596,13 @@ ARDOUR_UI::save_ardour_state () tearoff_node->add_child_nocopy (*t); } - if (mixer && mixer->monitor_section()) { + if (mixer->monitor_section()) { XMLNode* t = new XMLNode (X_("monitor-section")); mixer->monitor_section()->tearoff().add_state (*t); tearoff_node->add_child_nocopy (*t); } - if (editor && editor->mouse_mode_tearoff()) { + if (editor->mouse_mode_tearoff()) { XMLNode* t = new XMLNode (X_("mouse-mode")); editor->mouse_mode_tearoff ()->add_state (*t); tearoff_node->add_child_nocopy (*t); |