[gnome-commander] GnomeCmdDir: removed superfluous class members zero-inits
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] GnomeCmdDir: removed superfluous class members zero-inits
- Date: Tue, 10 Aug 2010 18:42:23 +0000 (UTC)
commit e6567e57a90c9e69187b78197a5811c6a648cd96
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Tue Aug 10 20:40:32 2010 +0200
GnomeCmdDir: removed superfluous class members zero-inits
src/gnome-cmd-dir.cc | 19 ++++++++++---------
1 files changed, 10 insertions(+), 9 deletions(-)
---
diff --git a/src/gnome-cmd-dir.cc b/src/gnome-cmd-dir.cc
index 80b1143..ce190c7 100644
--- a/src/gnome-cmd-dir.cc
+++ b/src/gnome-cmd-dir.cc
@@ -208,22 +208,23 @@ static void class_init (GnomeCmdDirClass *klass)
static void init (GnomeCmdDir *dir)
{
- dir->priv = g_new0 (GnomeCmdDirPrivate, 1);
- dir->voffset = 0;
- dir->dialog = NULL;
+ // dir->voffset = 0;
+ // dir->dialog = NULL;
dir->state = DIR_STATE_EMPTY;
+ dir->priv = g_new0 (GnomeCmdDirPrivate, 1);
+
+ dir->priv->handle = handle_new (dir);
+ // dir->priv->monitor_handle = NULL;
+ // dir->priv->monitor_users = 0;
+ // dir->priv->files = NULL;
+ dir->priv->file_collection = new GnomeCmdFileCollection;
+
if (DEBUG_ENABLED ('c'))
{
created_dirs_cnt++;
all_dirs = g_list_append (all_dirs, dir);
}
-
- dir->priv->handle = handle_new (dir);
- dir->priv->monitor_handle = NULL;
- dir->priv->monitor_users = 0;
- dir->priv->files = NULL;
- dir->priv->file_collection = new GnomeCmdFileCollection;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]