diff options
author | Carl Hetherington <carl@carlh.net> | 2009-01-21 02:43:24 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-01-21 02:43:24 +0000 |
commit | 30472988f5ea21b22f9561f2541c3f126efc297d (patch) | |
tree | 31560d9368613353f1ba9b1e3372bd5363ac6678 /gtk2_ardour/port_matrix_row_labels.cc | |
parent | d6637dad5a239d74038fdf9e5800e5108ba0c44f (diff) |
Fix a couple of compiler warnings.
git-svn-id: svn://localhost/ardour2/branches/3.0@4418 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/port_matrix_row_labels.cc')
-rw-r--r-- | gtk2_ardour/port_matrix_row_labels.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk2_ardour/port_matrix_row_labels.cc b/gtk2_ardour/port_matrix_row_labels.cc index 55c760f441..ab9480ac65 100644 --- a/gtk2_ardour/port_matrix_row_labels.cc +++ b/gtk2_ardour/port_matrix_row_labels.cc @@ -89,7 +89,7 @@ PortMatrixRowLabels::render (cairo_t* cr) /* SIDE BUNDLE NAMES */ - uint32_t x; + uint32_t x = 0; if (_location == LEFT) { x = name_pad(); } else if (_location == RIGHT) { @@ -131,7 +131,7 @@ PortMatrixRowLabels::render (cairo_t* cr) for (std::vector<boost::shared_ptr<ARDOUR::Bundle> >::const_iterator i = _body->row_bundles().begin(); i != _body->row_bundles().end(); ++i) { for (uint32_t j = 0; j < (*i)->nchannels(); ++j) { - uint32_t x; + uint32_t x = 0; if (_location == LEFT) { x = _longest_bundle_name + name_pad() * 2; } else if (_location == RIGHT) { @@ -186,7 +186,7 @@ PortMatrixRowLabels::button_press (double x, double y, int b, uint32_t t) uint32_t row = y / row_height (); boost::shared_ptr<ARDOUR::Bundle> bundle; - uint32_t channel; + uint32_t channel = 0; for (std::vector<boost::shared_ptr<ARDOUR::Bundle> >::const_iterator i = _body->row_bundles().begin(); i != _body->row_bundles().end(); ++i) { if (row < (*i)->nchannels ()) { |