summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-11-17 03:49:19 +0100
committerRobin Gareus <robin@gareus.org>2014-11-17 03:49:19 +0100
commitad739cd018df8d746de77cbe7feb8e52fb315114 (patch)
treed64f7a8665fd860f2fe4b9e1de5a7a905d4a8965 /gtk2_ardour
parent47f4005dbc7f9f8074dd18c806bcd621a38ae277 (diff)
add some assert() messages.
as hints clang static analyzer "Called C++ object pointer is null"
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/ardour_ui.cc2
-rw-r--r--gtk2_ardour/editor_route_groups.cc1
2 files changed, 3 insertions, 0 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc
index ac35e0db79..246d19a969 100644
--- a/gtk2_ardour/ardour_ui.cc
+++ b/gtk2_ardour/ardour_ui.cc
@@ -4029,6 +4029,8 @@ ARDOUR_UI::plugin_scan_dialog (std::string type, std::string plugin, bool can_ca
scan_dlg->get_vbox()->pack_start (*scan_tbox, PACK_SHRINK, 4);
}
+ assert(scan_dlg && scan_tbox && cancel_button);
+
if (type == X_("closeme")) {
scan_dlg->hide();
} else {
diff --git a/gtk2_ardour/editor_route_groups.cc b/gtk2_ardour/editor_route_groups.cc
index c7a148304b..6d56b7d8c0 100644
--- a/gtk2_ardour/editor_route_groups.cc
+++ b/gtk2_ardour/editor_route_groups.cc
@@ -473,6 +473,7 @@ EditorRouteGroups::groups_changed ()
void
EditorRouteGroups::property_changed (RouteGroup* group, const PropertyChange&)
{
+ assert(group);
_in_row_change = true;
Gtk::TreeModel::Children children = _model->children();