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:
parent
976a150e6b
commit
bd577a0663
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user