From 1317675c4766abc95f23dca5b24b2518d38f42e6 Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Fri, 28 Apr 2017 21:20:47 +0200 Subject: [PATCH] Mark _get_types as G_GNUC_CONST Signed-off-by: Sebastian Ramacher --- zathura/database-plain.h | 2 +- zathura/database-sqlite.h | 2 +- zathura/database.h | 2 +- zathura/dbus-interface.h | 2 +- zathura/file-monitor-glib.h | 2 +- zathura/file-monitor-signal.h | 2 +- zathura/file-monitor.h | 2 +- zathura/page-widget.h | 2 +- zathura/render.h | 4 ++-- 9 files changed, 10 insertions(+), 10 deletions(-) diff --git a/zathura/database-plain.h b/zathura/database-plain.h index a2f290e..a03f6ee 100644 --- a/zathura/database-plain.h +++ b/zathura/database-plain.h @@ -31,7 +31,7 @@ struct _ZathuraPlainDatabaseClass GObjectClass parent_class; }; -GType zathura_plaindatabase_get_type(void); +GType zathura_plaindatabase_get_type(void) G_GNUC_CONST; /** * Initialize database system. * diff --git a/zathura/database-sqlite.h b/zathura/database-sqlite.h index 19c9fc3..88f8022 100644 --- a/zathura/database-sqlite.h +++ b/zathura/database-sqlite.h @@ -31,7 +31,7 @@ struct _ZathuraSQLDatabaseClass GObjectClass parent_class; }; -GType zathura_sqldatabase_get_type(void); +GType zathura_sqldatabase_get_type(void) G_GNUC_CONST; /** * Initialize database system. diff --git a/zathura/database.h b/zathura/database.h index eb72364..b53fd03 100644 --- a/zathura/database.h +++ b/zathura/database.h @@ -54,7 +54,7 @@ struct _ZathuraDatabaseInterface girara_list_t* (*get_recent_files)(ZathuraDatabase* db, int max); }; -GType zathura_database_get_type(void); +GType zathura_database_get_type(void) G_GNUC_CONST; /** * Add or update bookmark in the database. diff --git a/zathura/dbus-interface.h b/zathura/dbus-interface.h index b2d240c..83d8f4f 100644 --- a/zathura/dbus-interface.h +++ b/zathura/dbus-interface.h @@ -37,7 +37,7 @@ struct zathura_dbus_class_s (G_TYPE_INSTANCE_GET_CLASS((obj), ZATHURA_TYPE_DBUS, \ ZathuraDbusClass)) -GType zathura_dbus_get_type(void); +GType zathura_dbus_get_type(void) G_GNUC_CONST; ZathuraDbus* zathura_dbus_new(zathura_t* zathura); diff --git a/zathura/file-monitor-glib.h b/zathura/file-monitor-glib.h index fde3979..f0d41b4 100644 --- a/zathura/file-monitor-glib.h +++ b/zathura/file-monitor-glib.h @@ -28,6 +28,6 @@ struct zathura_glibfilemonitor_class_s ZathuraFileMonitorClass parent_class; }; -GType zathura_glibfilemonitor_get_type(void); +GType zathura_glibfilemonitor_get_type(void) G_GNUC_CONST; #endif diff --git a/zathura/file-monitor-signal.h b/zathura/file-monitor-signal.h index ab3b033..8548158 100644 --- a/zathura/file-monitor-signal.h +++ b/zathura/file-monitor-signal.h @@ -28,6 +28,6 @@ struct zathura_signalfilemonitor_class_s ZathuraFileMonitorClass parent_class; }; -GType zathura_signalfilemonitor_get_type(void); +GType zathura_signalfilemonitor_get_type(void) G_GNUC_CONST; #endif diff --git a/zathura/file-monitor.h b/zathura/file-monitor.h index ca65407..76a6672 100644 --- a/zathura/file-monitor.h +++ b/zathura/file-monitor.h @@ -48,7 +48,7 @@ struct zathura_filemonitor_class_s * * @return the type */ -GType zathura_filemonitor_get_type(void); +GType zathura_filemonitor_get_type(void) G_GNUC_CONST; /** * Type of file monitor. diff --git a/zathura/page-widget.h b/zathura/page-widget.h index 79057dc..132b868 100644 --- a/zathura/page-widget.h +++ b/zathura/page-widget.h @@ -41,7 +41,7 @@ struct zathura_page_widget_class_s * Returns the type of the page view widget. * @return the type */ -GType zathura_page_widget_get_type(void); +GType zathura_page_widget_get_type(void) G_GNUC_CONST; /** * Create a page view widget. * @param zathura the zathura instance diff --git a/zathura/render.h b/zathura/render.h index c250e27..90dc5f7 100644 --- a/zathura/render.h +++ b/zathura/render.h @@ -39,7 +39,7 @@ struct zathura_renderer_class_s * Returns the type of the renderer. * @return the type */ -GType zathura_renderer_get_type(void); +GType zathura_renderer_get_type(void) G_GNUC_CONST; /** * Create a renderer. * @return a renderer object @@ -172,7 +172,7 @@ struct zathura_render_request_class_s * Returns the type of the render request. * @return the type */ -GType zathura_page_render_info_get_type(void); +GType zathura_page_render_info_get_type(void) G_GNUC_CONST; /** * Create a render request object * @param renderer a renderer object