aboutsummaryrefslogtreecommitdiffstats
path: root/src/bookmarks
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-10-28 03:54:57 +0800
committerChristian Persch <chpe@src.gnome.org>2004-10-28 03:54:57 +0800
commit529f8a142ef1b5cf04062216a442c5f492ec12e0 (patch)
tree39703b62f4fc8b29a4c80340f6be9217f760eaa1 /src/bookmarks
parent9b7fb421b624db43270af92c9742961a07260b90 (diff)
downloadgsoc2013-epiphany-529f8a142ef1b5cf04062216a442c5f492ec12e0.tar
gsoc2013-epiphany-529f8a142ef1b5cf04062216a442c5f492ec12e0.tar.gz
gsoc2013-epiphany-529f8a142ef1b5cf04062216a442c5f492ec12e0.tar.bz2
gsoc2013-epiphany-529f8a142ef1b5cf04062216a442c5f492ec12e0.tar.lz
gsoc2013-epiphany-529f8a142ef1b5cf04062216a442c5f492ec12e0.tar.xz
gsoc2013-epiphany-529f8a142ef1b5cf04062216a442c5f492ec12e0.tar.zst
gsoc2013-epiphany-529f8a142ef1b5cf04062216a442c5f492ec12e0.zip
Private data is 0-initialised, no need to set members to NULL, 0, or
2004-10-27 Christian Persch <chpe@cvs.gnome.org> * embed/ephy-embed-dialog.c: (ephy_embed_dialog_init): * embed/ephy-embed-persist.c: (ephy_embed_persist_init), (ephy_embed_persist_to_string): * embed/ephy-embed-shell.c: (ephy_embed_shell_init): * embed/find-dialog.c: (find_dialog_init): * embed/mozilla/mozilla-embed-persist.cpp: * embed/mozilla/mozilla-embed-single.cpp: * lib/ephy-dialog.c: (ephy_dialog_set_modal), (ephy_dialog_init): * lib/ephy-file-chooser.c: (ephy_file_chooser_init): * lib/ephy-node-db.c: (ephy_node_db_init): * lib/widgets/ephy-node-view.c: (ephy_node_view_init): * lib/widgets/ephy-search-entry.c: (ephy_search_entry_init): * src/bookmarks/ephy-bookmark-action.c: (ephy_bookmark_action_init): * src/bookmarks/ephy-bookmark-properties.c: (ephy_bookmark_properties_init): * src/bookmarks/ephy-bookmarks.c: (ephy_bookmarks_init): * src/bookmarks/ephy-favorites-menu.c: (ephy_favorites_menu_init): * src/bookmarks/ephy-new-bookmark.c: (ephy_new_bookmark_init): * src/bookmarks/ephy-topics-selector.c: (ephy_topics_selector_init): * src/ephy-encoding-dialog.c: (ephy_encoding_dialog_init): * src/ephy-encoding-menu.c: (ephy_encoding_menu_init): * src/ephy-favicon-action.c: (ephy_favicon_action_init): * src/ephy-location-action.c: (ephy_location_action_init): * src/ephy-notebook.c: (ephy_notebook_init): * src/ephy-session.c: (ephy_session_init): * src/ephy-shell.c: (ephy_shell_init): * src/ephy-tab.c: (ephy_tab_init): * src/ephy-tabs-menu.c: (ephy_tabs_menu_init): * src/ephy-window.c: (ephy_window_init): * src/pdm-dialog.c: (pdm_dialog_init): * src/ppview-toolbar.c: (ppview_toolbar_init): Private data is 0-initialised, no need to set members to NULL, 0, or FALSE.
Diffstat (limited to 'src/bookmarks')
-rw-r--r--src/bookmarks/ephy-bookmark-action.c4
-rw-r--r--src/bookmarks/ephy-bookmark-properties.c2
-rw-r--r--src/bookmarks/ephy-bookmarks.c4
-rw-r--r--src/bookmarks/ephy-favorites-menu.c3
-rw-r--r--src/bookmarks/ephy-new-bookmark.c4
-rw-r--r--src/bookmarks/ephy-topics-selector.c2
6 files changed, 1 insertions, 18 deletions
diff --git a/src/bookmarks/ephy-bookmark-action.c b/src/bookmarks/ephy-bookmark-action.c
index 33b04ba55..f8bc243f8 100644
--- a/src/bookmarks/ephy-bookmark-action.c
+++ b/src/bookmarks/ephy-bookmark-action.c
@@ -959,10 +959,6 @@ ephy_bookmark_action_init (EphyBookmarkAction *action)
action->priv = EPHY_BOOKMARK_ACTION_GET_PRIVATE (action);
- action->priv->prop_dialog = NULL;
- action->priv->cache_handler = 0;
- action->priv->motion_handler = 0;
-
bookmarks = ephy_shell_get_bookmarks (ephy_shell);
node = ephy_bookmarks_get_smart_bookmarks (bookmarks);
ephy_node_signal_connect_object (node, EPHY_NODE_CHILD_ADDED,
diff --git a/src/bookmarks/ephy-bookmark-properties.c b/src/bookmarks/ephy-bookmark-properties.c
index d95f2412b..51b15b454 100644
--- a/src/bookmarks/ephy-bookmark-properties.c
+++ b/src/bookmarks/ephy-bookmark-properties.c
@@ -425,8 +425,6 @@ static void
ephy_bookmark_properties_init (EphyBookmarkProperties *editor)
{
editor->priv = EPHY_BOOKMARK_PROPERTIES_GET_PRIVATE (editor);
-
- editor->priv->bookmark = NULL;
}
GtkWidget *
diff --git a/src/bookmarks/ephy-bookmarks.c b/src/bookmarks/ephy-bookmarks.c
index 2e6c0ca9a..ac2de3b28 100644
--- a/src/bookmarks/ephy-bookmarks.c
+++ b/src/bookmarks/ephy-bookmarks.c
@@ -678,12 +678,10 @@ ephy_bookmarks_init (EphyBookmarks *eb)
EphyNodeDb *db;
eb->priv = EPHY_BOOKMARKS_GET_PRIVATE (eb);
- eb->priv->toolbars_model = NULL;
db = ephy_node_db_new (EPHY_NODE_DB_BOOKMARKS);
eb->priv->db = db;
- eb->priv->dirty = FALSE;
- eb->priv->save_timeout_id = 0;
+
eb->priv->xml_file = g_build_filename (ephy_dot_dir (),
"ephy-bookmarks.xml",
NULL);
diff --git a/src/bookmarks/ephy-favorites-menu.c b/src/bookmarks/ephy-favorites-menu.c
index 673d7b407..f3d79e43b 100644
--- a/src/bookmarks/ephy-favorites-menu.c
+++ b/src/bookmarks/ephy-favorites-menu.c
@@ -279,9 +279,6 @@ ephy_favorites_menu_init (EphyFavoritesMenu *menu)
menu->priv = p;
menu->priv->bookmarks = ephy_shell_get_bookmarks (ephy_shell);
- menu->priv->ui_id = 0;
- menu->priv->update_tag = 0;
- menu->priv->action_group = NULL;
fav = ephy_bookmarks_get_favorites (menu->priv->bookmarks);
ephy_node_signal_connect_object (fav,
diff --git a/src/bookmarks/ephy-new-bookmark.c b/src/bookmarks/ephy-new-bookmark.c
index 1b37f6fa5..82cb28dfd 100644
--- a/src/bookmarks/ephy-new-bookmark.c
+++ b/src/bookmarks/ephy-new-bookmark.c
@@ -434,10 +434,6 @@ static void
ephy_new_bookmark_init (EphyNewBookmark *editor)
{
editor->priv = EPHY_NEW_BOOKMARK_GET_PRIVATE (editor);
-
- editor->priv->location = NULL;
- editor->priv->icon = NULL;
- editor->priv->id = 0;
}
void
diff --git a/src/bookmarks/ephy-topics-selector.c b/src/bookmarks/ephy-topics-selector.c
index 01aca9a41..b6d268c3a 100644
--- a/src/bookmarks/ephy-topics-selector.c
+++ b/src/bookmarks/ephy-topics-selector.c
@@ -261,8 +261,6 @@ static void
ephy_topics_selector_init (EphyTopicsSelector *selector)
{
selector->priv = EPHY_TOPICS_SELECTOR_GET_PRIVATE (selector);
- selector->priv->bookmark = NULL;
- selector->priv->topics = NULL;
selector->priv->filter = ephy_node_filter_new ();
ephy_node_filter_add_expression (selector->priv->filter,