From c003c99a75587ba39a45d164272760c33f9666b5 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 --- modules/plugin-mono/e-plugin-mono.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'modules/plugin-mono') diff --git a/modules/plugin-mono/e-plugin-mono.c b/modules/plugin-mono/e-plugin-mono.c index e47c9ac29c..8fc3fc02c1 100644 --- a/modules/plugin-mono/e-plugin-mono.c +++ b/modules/plugin-mono/e-plugin-mono.c @@ -34,10 +34,6 @@ #include #include -#define E_PLUGIN_MONO_GET_PRIVATE(obj) \ - (G_TYPE_INSTANCE_GET_PRIVATE \ - ((obj), E_TYPE_PLUGIN_MONO, EPluginMonoPrivate)) - struct _EPluginMonoPrivate { MonoAssembly *assembly; MonoClass *class; @@ -234,7 +230,7 @@ plugin_mono_init (EPluginMono *plugin_mono) (GDestroyNotify) g_free, (GDestroyNotify) NULL); - plugin_mono->priv = E_PLUGIN_MONO_GET_PRIVATE (plugin_mono); + plugin_mono->priv = G_TYPE_INSTANCE_GET_PRIVATE (plugin_mono, E_TYPE_PLUGIN_MONO, EPluginMonoPrivate); plugin_mono->priv->methods = methods; } -- cgit