From: John Darrington Date: Sun, 30 Aug 2020 05:46:03 +0000 (+0200) Subject: Replace '(GObjectClass*) class' with 'G_OBJECT_CLASS(class)' X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=952bce971f10482c5f2fdc64582f48aea1238f27;p=pspp Replace '(GObjectClass*) class' with 'G_OBJECT_CLASS(class)' --- diff --git a/src/ui/gui/psppire-conf.c b/src/ui/gui/psppire-conf.c index 60cbc0cedd..d0fc6e9de7 100644 --- a/src/ui/gui/psppire-conf.c +++ b/src/ui/gui/psppire-conf.c @@ -114,7 +114,7 @@ psppire_conf_class_init (PsppireConfClass *class) GObjectClass *object_class; parent_class = g_type_class_peek_parent (class); - object_class = (GObjectClass*) class; + object_class = G_OBJECT_CLASS (class); object_class->finalize = psppire_conf_finalize; object_class->dispose = psppire_conf_dispose; diff --git a/src/ui/gui/psppire-data-store.c b/src/ui/gui/psppire-data-store.c index 0310601501..cff30e3bf2 100644 --- a/src/ui/gui/psppire-data-store.c +++ b/src/ui/gui/psppire-data-store.c @@ -290,7 +290,7 @@ psppire_data_store_class_init (PsppireDataStoreClass *class) GObjectClass *object_class; parent_class = g_type_class_peek_parent (class); - object_class = (GObjectClass*) class; + object_class = G_OBJECT_CLASS (class); object_class->finalize = psppire_data_store_finalize; object_class->dispose = psppire_data_store_dispose; diff --git a/src/ui/gui/psppire-delimited-text.c b/src/ui/gui/psppire-delimited-text.c index 51f238405f..b232ef3092 100644 --- a/src/ui/gui/psppire-delimited-text.c +++ b/src/ui/gui/psppire-delimited-text.c @@ -492,7 +492,7 @@ psppire_delimited_text_class_init (PsppireDelimitedTextClass *class) GObjectClass *object_class; parent_class = g_type_class_peek_parent (class); - object_class = (GObjectClass*) class; + object_class = G_OBJECT_CLASS (class); GParamSpec *first_line_spec = g_param_spec_int ("first-line", diff --git a/src/ui/gui/psppire-spreadsheet-model.c b/src/ui/gui/psppire-spreadsheet-model.c index e3a98cb921..e0173c6add 100644 --- a/src/ui/gui/psppire-spreadsheet-model.c +++ b/src/ui/gui/psppire-spreadsheet-model.c @@ -98,7 +98,7 @@ psppire_spreadsheet_model_finalize (GObject * object) static void psppire_spreadsheet_model_class_init (PsppireSpreadsheetModelClass * class) { - GObjectClass *object_class; + GObjectClass *object_class = G_OBJECT_CLASS (class); GParamSpec *spreadsheet_spec = g_param_spec_pointer ("spreadsheet", "Spreadsheet", @@ -108,7 +108,6 @@ psppire_spreadsheet_model_class_init (PsppireSpreadsheetModelClass * class) parent_class = g_type_class_peek_parent (class); - object_class = (GObjectClass *) class; object_class->set_property = psppire_spreadsheet_model_set_property; diff --git a/src/ui/gui/psppire-text-file.c b/src/ui/gui/psppire-text-file.c index e978fcb626..7460104c50 100644 --- a/src/ui/gui/psppire-text-file.c +++ b/src/ui/gui/psppire-text-file.c @@ -392,7 +392,7 @@ psppire_text_file_class_init (PsppireTextFileClass *class) GObjectClass *object_class; parent_class = g_type_class_peek_parent (class); - object_class = (GObjectClass*) class; + object_class = G_OBJECT_CLASS (class); GParamSpec *maximum_lines_spec = g_param_spec_int ("maximum-lines", diff --git a/src/ui/gui/psppire-window-register.c b/src/ui/gui/psppire-window-register.c index 6345b72914..2bf0c94ff7 100644 --- a/src/ui/gui/psppire-window-register.c +++ b/src/ui/gui/psppire-window-register.c @@ -72,7 +72,7 @@ psppire_window_register_class_init (PsppireWindowRegisterClass *class) GObjectClass *object_class; parent_class = g_type_class_peek_parent (class); - object_class = (GObjectClass*) class; + object_class = G_OBJECT_CLASS (class); object_class->finalize = psppire_window_register_finalize; object_class->dispose = psppire_window_register_dispose;