13
0

Avoid possible use of uninitialized values.

This could only happen with a broken widget, but it shuts up clang and doesn't
hurt.
This commit is contained in:
David Robillard 2014-11-18 02:37:30 -05:00
parent 976a150e6b
commit bd577a0663
3 changed files with 3 additions and 3 deletions

View File

@ -103,7 +103,7 @@ BigClockWindow::on_size_allocate (Gtk::Allocation& alloc)
void
BigClockWindow::reset_aspect_ratio ()
{
Gtk::Requisition req;
Gtk::Requisition req = { 0, 0 };
clock.size_request (req);

View File

@ -322,7 +322,7 @@ Editor::track_canvas_viewport_size_allocated ()
void
Editor::reset_controls_layout_width ()
{
GtkRequisition req;
GtkRequisition req = { 0, 0 };
gint w;
edit_controls_vbox.size_request (req);

View File

@ -91,7 +91,7 @@ Widget::compute_bounding_box () const
{
std::cerr << "cbbox for widget\n";
GtkRequisition req;
GtkRequisition req = { 0, 0 };
Gtk::Allocation alloc;
_widget.size_request (req);