forked from AuroraMiddleware/gtk
ScrolledWindow: Bin unreachable ternary branches
We already checked that the child is not NULL above. Coverity CID 1454191
This commit is contained in:
parent
3249b351af
commit
99c8e30c02
@ -1540,19 +1540,12 @@ gtk_scrolled_window_allocate (GtkCssGadget *gadget,
|
||||
{
|
||||
gint child_scroll_width;
|
||||
gint child_scroll_height;
|
||||
GtkScrollablePolicy hscroll_policy;
|
||||
GtkScrollablePolicy vscroll_policy;
|
||||
gboolean previous_hvis;
|
||||
gboolean previous_vvis;
|
||||
guint count = 0;
|
||||
GtkScrollable *scrollable_child = GTK_SCROLLABLE (child);
|
||||
|
||||
hscroll_policy = scrollable_child != NULL
|
||||
? gtk_scrollable_get_hscroll_policy (scrollable_child)
|
||||
: GTK_SCROLL_MINIMUM;
|
||||
vscroll_policy = scrollable_child != NULL
|
||||
? gtk_scrollable_get_vscroll_policy (scrollable_child)
|
||||
: GTK_SCROLL_MINIMUM;
|
||||
GtkScrollablePolicy hscroll_policy = gtk_scrollable_get_hscroll_policy (scrollable_child);
|
||||
GtkScrollablePolicy vscroll_policy = gtk_scrollable_get_vscroll_policy (scrollable_child);
|
||||
|
||||
/* Determine scrollbar visibility first via hfw apis */
|
||||
if (gtk_widget_get_request_mode (child) == GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH)
|
||||
|
Loading…
Reference in New Issue
Block a user