[gnome-commander/gcmd-1-2-8] GnomeCmdFile: removed superfluous class members zero-inits



commit c944769c0b90e006ae12ca95b13978d6c1dad20c
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Mon Aug 9 23:00:11 2010 +0200

    GnomeCmdFile: removed superfluous class members zero-inits

 src/gnome-cmd-file.cc |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/gnome-cmd-file.cc b/src/gnome-cmd-file.cc
index ff1beaa..776dbf6 100644
--- a/src/gnome-cmd-file.cc
+++ b/src/gnome-cmd-file.cc
@@ -116,11 +116,15 @@ static void class_init (GnomeCmdFileClass *klass)
 
 static void init (GnomeCmdFile *file)
 {
-    file->info = NULL;
-    file->collate_key = NULL;
+    // file->info = NULL;
+    // file->collate_key = NULL;
 
     file->priv = g_new0 (GnomeCmdFilePrivate, 1);
-    file->priv->dir_handle = NULL;
+
+    // file->priv->dir_handle = NULL;
+
+    // file->priv->last_update.tv_sec = 0;
+    // file->priv->last_update.tv_usec = 0;
 
     file->priv->tree_size = -1;
 
@@ -129,10 +133,6 @@ static void init (GnomeCmdFile *file)
         all_files = g_list_append (all_files, file);
         created_files_cnt++;
     }
-
-    file->priv->last_update.tv_sec = 0;
-    file->priv->last_update.tv_usec = 0;
-
 }
 
 



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