[Ekiga-devel-list] Cleanup 2



  bool val = false;

  g_return_if_fail (data != NULL);

  if (gm_conf_entry_get_type (entry) == GM_CONF_BOOL) {

    val = gm_conf_entry_get_bool (entry);
    ekiga_main_window_set_stay_on_top (EKIGA_MAIN_WINDOW (data), val);
  }

I would like to remove the initialisation of val, it serves no purpose.

The same for:

  GtkStatusIcon *statusicon = NULL;
  GtkWidget *main_window = NULL;

  main_window = GnomeMeeting::Process ()->GetMainWindow ();
statusicon = GTK_STATUS_ICON (GnomeMeeting::Process ()->GetStatusicon ());

etc.

Does someone disagree in removing unuseful initialisations?

--
Eugen


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]