summaryrefslogtreecommitdiff
path: root/gtk2_ardour/port_matrix_row_labels.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2_ardour/port_matrix_row_labels.cc')
-rw-r--r--gtk2_ardour/port_matrix_row_labels.cc6
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 ()) {