From eef2c6b47b4c48b71f6122a12ac12f08520e5481 Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Wed, 17 Apr 2019 04:07:18 +0200 Subject: mate-volume-control: Fix 'syntax error' detected with 'cppcheck' Fixes cppcheck warnings: [mate-volume-control/gvc-applet.c:118]: (error) syntax error [mate-volume-control/gvc-applet.c:133]: (error) syntax error [mate-volume-control/gvc-applet.c:184]: (error) syntax error [mate-volume-control/gvc-applet.c:287]: (error) syntax error [mate-volume-control/gvc-applet.c:290]: (error) syntax error [mate-volume-control/gvc-combo-box.c:111]: (error) syntax error [mate-volume-control/gvc-combo-box.c:309]: (error) syntax error [mate-volume-control/gvc-combo-box.c:317]: (error) syntax error [mate-volume-control/gvc-combo-box.c:428]: (error) syntax error [mate-volume-control/gvc-mixer-dialog.c:793]: (error) syntax error [mate-volume-control/gvc-status-icon.c:107]: (error) syntax error [mate-volume-control/gvc-status-icon.c:122]: (error) syntax error [mate-volume-control/gvc-status-icon.c:175]: (error) syntax error [mate-volume-control/gvc-status-icon.c:280]: (error) syntax error [mate-volume-control/gvc-status-icon.c:283]: (error) syntax error --- mate-volume-control/gvc-combo-box.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mate-volume-control/gvc-combo-box.c') diff --git a/mate-volume-control/gvc-combo-box.c b/mate-volume-control/gvc-combo-box.c index fe77f95..4ffe41c 100644 --- a/mate-volume-control/gvc-combo-box.c +++ b/mate-volume-control/gvc-combo-box.c @@ -108,7 +108,7 @@ on_switch_active_option_notify (MateMixerSwitch *swtch, const gchar *name; active = mate_mixer_switch_get_active_option (swtch); - if G_UNLIKELY (active == NULL) { + if (G_UNLIKELY (active == NULL)) { g_warn_if_reached (); return; } @@ -306,7 +306,7 @@ on_combo_box_changed (GtkComboBox *widget, GvcComboBox *combobox) gchar *name; MateMixerSwitchOption *option; - if G_UNLIKELY (gtk_combo_box_get_active_iter (GTK_COMBO_BOX (widget), &iter) == FALSE) + if (G_UNLIKELY (gtk_combo_box_get_active_iter (GTK_COMBO_BOX (widget), &iter) == FALSE)) return; gtk_tree_model_get (combobox->priv->model, &iter, @@ -314,7 +314,7 @@ on_combo_box_changed (GtkComboBox *widget, GvcComboBox *combobox) -1); option = mate_mixer_switch_get_option (combobox->priv->swtch, name); - if G_UNLIKELY (option == NULL) { + if (G_UNLIKELY (option == NULL)) { g_warn_if_reached (); g_free (name); return; @@ -425,7 +425,7 @@ gvc_combo_box_dispose (GObject *object) combobox = GVC_COMBO_BOX (object); - if G_LIKELY (combobox->priv->swtch != NULL) { + if (G_LIKELY (combobox->priv->swtch != NULL)) { g_signal_handlers_disconnect_by_func (G_OBJECT (combobox->priv->swtch), G_CALLBACK (on_switch_active_option_notify), combobox); -- cgit v1.2.1