From f343f45b504c6dd78736a505a7865a2cc3d353ed Mon Sep 17 00:00:00 2001 From: rbuj Date: Tue, 29 Dec 2020 22:11:29 +0100 Subject: Remove cppcheck warning knownConditionTrueFalse --- cut-n-paste/toolbar-editor/egg-editable-toolbar.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'cut-n-paste') diff --git a/cut-n-paste/toolbar-editor/egg-editable-toolbar.c b/cut-n-paste/toolbar-editor/egg-editable-toolbar.c index b92ec33..135b3bd 100644 --- a/cut-n-paste/toolbar-editor/egg-editable-toolbar.c +++ b/cut-n-paste/toolbar-editor/egg-editable-toolbar.c @@ -1107,12 +1107,14 @@ static void update_fixed (EggEditableToolbar *etoolbar) { GtkWidget *toolbar, *dock; - if (!etoolbar->priv->fixed_toolbar) return; + + if (!etoolbar->priv->fixed_toolbar) + return; toolbar = etoolbar->priv->fixed_toolbar; dock = get_dock_nth (etoolbar, 0); - if (dock && toolbar && gtk_widget_get_parent (toolbar) == NULL) + if (dock && gtk_widget_get_parent (toolbar) == NULL) { gtk_box_pack_end (GTK_BOX (dock), toolbar, FALSE, TRUE, 0); -- cgit v1.2.1