From 218ca30b461a97cc0302914f0d292794f2a62d2f Mon Sep 17 00:00:00 2001 From: Richard Cohen Date: Sat, 20 May 2023 14:24:24 +0100 Subject: [PATCH] Refactor: DECLARE_FINAL GncPluginReportSystem < GncPlugin --- gnucash/gnome/gnc-plugin-report-system.h | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/gnucash/gnome/gnc-plugin-report-system.h b/gnucash/gnome/gnc-plugin-report-system.h index b897514ec7a..2329c6f399d 100644 --- a/gnucash/gnome/gnc-plugin-report-system.h +++ b/gnucash/gnome/gnc-plugin-report-system.h @@ -31,27 +31,17 @@ G_BEGIN_DECLS /* type macros */ #define GNC_TYPE_PLUGIN_REPORT_SYSTEM (gnc_plugin_report_system_get_type ()) -#define GNC_PLUGIN_REPORT_SYSTEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_PLUGIN_REPORT_SYSTEM, GncPluginReportSystem)) -#define GNC_PLUGIN_REPORT_SYSTEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_PLUGIN_REPORT_SYSTEM, GncPluginReportSystemClass)) -#define GNC_IS_PLUGIN_REPORT_SYSTEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_PLUGIN_REPORT_SYSTEM)) -#define GNC_IS_PLUGIN_REPORT_SYSTEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_PLUGIN_REPORT_SYSTEM)) -#define GNC_PLUGIN_REPORT_SYSTEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_PLUGIN_REPORT_SYSTEM, GncPluginReportSystemClass)) +G_DECLARE_FINAL_TYPE (GncPluginReportSystem, gnc_plugin_report_system, GNC, PLUGIN_REPORT_SYSTEM, GncPlugin) #define GNC_PLUGIN_REPORT_SYSTEM_NAME "gnc-plugin-report-system" /* typedefs & structures */ -typedef struct +struct _GncPluginReportSystem { GncPlugin gnc_plugin; -} GncPluginReportSystem; - -typedef struct -{ - GncPluginClass gnc_plugin; -} GncPluginReportSystemClass; +}; /* function prototypes */ -GType gnc_plugin_report_system_get_type (void); void gnc_plugin_report_system_new (void); G_END_DECLS