From c5d4f2bf303b669d663078a818b0ee128e2ad98d Mon Sep 17 00:00:00 2001 From: Richard Cohen Date: Mon, 12 Jun 2023 19:12:37 +0100 Subject: [PATCH] Refactor: DECLARE_FINAL GncPluginQifImport < GncPlugin --- .../qif-imp/gnc-plugin-qif-import.h | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/gnucash/import-export/qif-imp/gnc-plugin-qif-import.h b/gnucash/import-export/qif-imp/gnc-plugin-qif-import.h index f9d9ca49bb..bdba6ac0a2 100644 --- a/gnucash/import-export/qif-imp/gnc-plugin-qif-import.h +++ b/gnucash/import-export/qif-imp/gnc-plugin-qif-import.h @@ -32,28 +32,17 @@ G_BEGIN_DECLS /* type macros */ #define GNC_TYPE_PLUGIN_QIF_IMPORT (gnc_plugin_qif_import_get_type ()) -#define GNC_PLUGIN_QIF_IMPORT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_PLUGIN_QIF_IMPORT, GncPluginQifImport)) -#define GNC_PLUGIN_QIF_IMPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_PLUGIN_QIF_IMPORT, GncPluginQifImportClass)) -#define GNC_IS_PLUGIN_QIF_IMPORT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_PLUGIN_QIF_IMPORT)) -#define GNC_IS_PLUGIN_QIF_IMPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_PLUGIN_QIF_IMPORT)) -#define GNC_PLUGIN_QIF_IMPORT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_PLUGIN_QIF_IMPORT, GncPluginQifImportClass)) +G_DECLARE_FINAL_TYPE (GncPluginQifImport, gnc_plugin_qif_import, GNC, PLUGIN_QIF_IMPORT, GncPlugin) #define GNC_PLUGIN_QIF_IMPORT_NAME "gnc-plugin-qif-import" /* typedefs & structures */ -typedef struct +struct _GncPluginQifImport { GncPlugin gnc_plugin; -} GncPluginQifImport; - -typedef struct -{ - GncPluginClass gnc_plugin; -} GncPluginQifImportClass; +}; /* function prototypes */ -GType gnc_plugin_qif_import_get_type (void); - GncPlugin *gnc_plugin_qif_import_new (void); void gnc_plugin_qif_import_create_plugin (void);