summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPranav Kant <pranavk@gnome.org>2015-06-07 22:28:01 +0530
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-06-09 10:44:23 +0200
commit0e947f33130c55881035e39dcb1c5e64c33297e9 (patch)
tree71fd868e2eb2b5f4fcbfab3b987a1c9f1c1d56fd
parentc5f1f7ad2710914fdd6645dd8ce958c70d1d8381 (diff)
lokdocview: mark *_get_type() with const function attribute
Use G_GNUC_CONST that adds const function attribute to lok_doc_view_get_type() for better performance. Change-Id: Id79f0395a98c4f98b46303e9b5ee1e103fbe331f
-rw-r--r--include/LibreOfficeKit/LibreOfficeKitGtk.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/LibreOfficeKit/LibreOfficeKitGtk.h b/include/LibreOfficeKit/LibreOfficeKitGtk.h
index 747e45e531f9..e84feee9bd57 100644
--- a/include/LibreOfficeKit/LibreOfficeKitGtk.h
+++ b/include/LibreOfficeKit/LibreOfficeKitGtk.h
@@ -44,7 +44,7 @@ struct _LOKDocViewClass
void (* part_changed) (LOKDocView* pView, int new_part);
};
-GType lok_doc_view_get_type (void);
+GType lok_doc_view_get_type (void) G_GNUC_CONST;
GtkWidget* lok_doc_view_new (LibreOfficeKit* pOffice );
gboolean lok_doc_view_open_document (LOKDocView* pDocView,
char* pPath);