From e00227ccfd0028fdc00683166217541df4685f94 Mon Sep 17 00:00:00 2001 From: Pranav Kant Date: Sun, 7 Jun 2015 22:28:01 +0530 Subject: [PATCH 025/398] 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 (cherry picked from commit 0e947f33130c55881035e39dcb1c5e64c33297e9) --- include/LibreOfficeKit/LibreOfficeKitGtk.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.12.0