diff options
author | Pablo Barciela <[email protected]> | 2019-04-17 04:07:18 +0200 |
---|---|---|
committer | ZenWalker <[email protected]> | 2019-04-18 01:25:24 +0200 |
commit | eef2c6b47b4c48b71f6122a12ac12f08520e5481 (patch) | |
tree | f2087c2d398f60edd78a2ac25be2654641de2f4b /mate-volume-control/gvc-combo-box.c | |
parent | 3ae6314f2574b99ea70f7ecffb7740526db5011c (diff) | |
download | mate-media-eef2c6b47b4c48b71f6122a12ac12f08520e5481.tar.bz2 mate-media-eef2c6b47b4c48b71f6122a12ac12f08520e5481.tar.xz |
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
Diffstat (limited to 'mate-volume-control/gvc-combo-box.c')
-rw-r--r-- | mate-volume-control/gvc-combo-box.c | 8 |
1 files changed, 4 insertions, 4 deletions
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); |