Replace '(GObjectClass*) class' with 'G_OBJECT_CLASS(class)'
authorJohn Darrington <john@darrington.wattle.id.au>
Sun, 30 Aug 2020 05:46:03 +0000 (07:46 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sun, 30 Aug 2020 05:39:07 +0000 (07:39 +0200)
src/ui/gui/psppire-conf.c
src/ui/gui/psppire-data-store.c
src/ui/gui/psppire-delimited-text.c
src/ui/gui/psppire-spreadsheet-model.c
src/ui/gui/psppire-text-file.c
src/ui/gui/psppire-window-register.c

index 60cbc0ceddddb47a092172e6a1ccfecb14ae203b..d0fc6e9de712ca11ba90c39f6d3b73d1564c1c86 100644 (file)
@@ -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;
index 0310601501c903de5d1f09bd3fa6ee6a8d559df0..cff30e3bf25f7f6f8a44f08790c1f5200022a379 100644 (file)
@@ -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;
index 51f238405f95c8f3a8e2394424a23983c9a1bb93..b232ef309226ca052846f449d92f9fcfebc9ff2d 100644 (file)
@@ -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",
index e3a98cb9211a6de69f241e498886b4162f107ad3..e0173c6adde38884cfd954820c51dac710025218 100644 (file)
@@ -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;
 
index e978fcb626279f37e1dac5d4e12323071a91b9a7..7460104c504cb1f0115c49f58b77ba2351586154 100644 (file)
@@ -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",
index 6345b729145900e68f440aee86e2df1b2e7619cb..2bf0c94ff79a4835fe12bc533f4bfb4aa4d94d20 100644 (file)
@@ -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;