[gnome-commander/get_rid_of_xml] Initiate GnomeCmdConList pointer elements with nullptr



commit 1a2e5e11ddf07f13fc0eef87e74d97aaa4052d63
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Mon Dec 31 01:16:13 2018 +0100

    Initiate GnomeCmdConList pointer elements with nullptr

 src/gnome-cmd-con-list.cc | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)
---
diff --git a/src/gnome-cmd-con-list.cc b/src/gnome-cmd-con-list.cc
index a9b5b859..9c64f9f3 100644
--- a/src/gnome-cmd-con-list.cc
+++ b/src/gnome-cmd-con-list.cc
@@ -39,13 +39,13 @@ struct GnomeCmdConList::Private
     gboolean device_cons_changed;
     gboolean quick_ftp_cons_changed;
 
-    GList *remote_cons;
-    GList *device_cons;
-    GList *quick_ftp_cons;
+    GList *remote_cons    {nullptr};
+    GList *device_cons    {nullptr};
+    GList *quick_ftp_cons {nullptr};
 
-    GnomeCmdCon *home_con;
+    GnomeCmdCon *home_con {nullptr};
 #ifdef HAVE_SAMBA
-    GnomeCmdCon *smb_con;
+    GnomeCmdCon *smb_con  {nullptr};
 #endif
     GList *all_cons;
 };
@@ -152,9 +152,6 @@ static void init (GnomeCmdConList *con_list)
 #ifdef HAVE_SAMBA
     con_list->priv->smb_con = gnome_cmd_con_smb_new ();
 #endif
-    // con_list->priv->remote_cons = NULL;
-    // con_list->priv->device_cons = NULL;
-    // con_list->priv->quick_ftp_cons = NULL;
     con_list->priv->all_cons = g_list_append (NULL, con_list->priv->home_con);
 #ifdef HAVE_SAMBA
     con_list->priv->all_cons = g_list_append (con_list->priv->all_cons, con_list->priv->smb_con);


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