From 1301cf02efdacd20fb5ce3e2554ae15b8f146e8a Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Fri, 25 Feb 2011 16:20:41 +0100 Subject: Bug #614480 - Avoid using G_TYPE_INSTANCE_GET_PRIVATE repeatedly --- em-format/em-format.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'em-format') diff --git a/em-format/em-format.c b/em-format/em-format.c index 27f3d1bfb6..23573331c0 100644 --- a/em-format/em-format.c +++ b/em-format/em-format.c @@ -36,10 +36,6 @@ #include "shell/e-shell.h" #include "shell/e-shell-settings.h" -#define EM_FORMAT_GET_PRIVATE(obj) \ - (G_TYPE_INSTANCE_GET_PRIVATE \ - ((obj), EM_TYPE_FORMAT, EMFormatPrivate)) - #define d(x) typedef struct _EMFormatCache EMFormatCache; @@ -358,7 +354,7 @@ emf_init (EMFormat *emf) EShell *shell; EShellSettings *shell_settings; - emf->priv = EM_FORMAT_GET_PRIVATE (emf); + emf->priv = G_TYPE_INSTANCE_GET_PRIVATE (emf, EM_TYPE_FORMAT, EMFormatPrivate); emf->inline_table = g_hash_table_new_full ( g_str_hash, g_str_equal, -- cgit v1.2.3