From: John Darrington Date: Fri, 2 Jan 2009 08:01:23 +0000 (+0900) Subject: Fix warnings X-Git-Tag: v0.7.3~296^2~8^2~2 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31bd57d71cdbdc32082c32c255822122b7d69fab;p=pspp-builds.git Fix warnings --- diff --git a/src/ui/gui/psppire-output-window.c b/src/ui/gui/psppire-output-window.c index abbcae71..89075424 100644 --- a/src/ui/gui/psppire-output-window.c +++ b/src/ui/gui/psppire-output-window.c @@ -80,9 +80,6 @@ static GObjectClass *parent_class; static void psppire_output_window_finalize (GObject *object) { - GObjectClass *class = G_OBJECT_GET_CLASS (object); - - if (G_OBJECT_CLASS (parent_class)->finalize) (*G_OBJECT_CLASS (parent_class)->finalize) (object); } diff --git a/src/ui/gui/psppire-syntax-window.c b/src/ui/gui/psppire-syntax-window.c index 3fe6d1a6..421ae2ca 100644 --- a/src/ui/gui/psppire-syntax-window.c +++ b/src/ui/gui/psppire-syntax-window.c @@ -75,8 +75,6 @@ static GObjectClass *parent_class ; static void psppire_syntax_window_finalize (GObject *object) { - GObjectClass *class = G_OBJECT_GET_CLASS (object); - if (G_OBJECT_CLASS (parent_class)->finalize) (*G_OBJECT_CLASS (parent_class)->finalize) (object); } @@ -85,6 +83,7 @@ psppire_syntax_window_finalize (GObject *object) static void psppire_syntax_window_class_init (PsppireSyntaxWindowClass *class) { + parent_class = g_type_class_peek_parent (class); } @@ -93,8 +92,6 @@ psppire_syntax_window_base_init (PsppireSyntaxWindowClass *class) { GObjectClass *object_class = G_OBJECT_CLASS (class); - parent_class = g_type_class_peek_parent (class); - object_class->finalize = psppire_syntax_window_finalize; } diff --git a/src/ui/gui/psppire.c b/src/ui/gui/psppire.c index 62117a01..b2861d8a 100644 --- a/src/ui/gui/psppire.c +++ b/src/ui/gui/psppire.c @@ -283,7 +283,7 @@ parse_non_options (int key, char *arg, struct argp_state *state) ds_destroy (&syntax); - psppire_window_set_filename (the_data_window, arg); + psppire_window_set_filename (PSPPIRE_WINDOW (the_data_window), arg); break; }