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 --- widgets/table/e-table-memory-store.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'widgets/table/e-table-memory-store.c') diff --git a/widgets/table/e-table-memory-store.c b/widgets/table/e-table-memory-store.c index 5a0263b308..37816c8a18 100644 --- a/widgets/table/e-table-memory-store.c +++ b/widgets/table/e-table-memory-store.c @@ -28,10 +28,6 @@ #include "e-table-memory-store.h" -#define E_TABLE_MEMORY_STORE_GET_PRIVATE(obj) \ - (G_TYPE_INSTANCE_GET_PRIVATE \ - ((obj), E_TYPE_TABLE_MEMORY_STORE, ETableMemoryStorePrivate)) - #define STORE_LOCATOR(etms, col, row) (*((etms)->priv->store + (row) * (etms)->priv->col_count + (col))) struct _ETableMemoryStorePrivate { @@ -230,7 +226,7 @@ etms_finalize (GObject *object) { ETableMemoryStorePrivate *priv; - priv = E_TABLE_MEMORY_STORE_GET_PRIVATE (object); + priv = E_TABLE_MEMORY_STORE (object)->priv; e_table_memory_store_clear (E_TABLE_MEMORY_STORE (object)); @@ -244,7 +240,7 @@ etms_finalize (GObject *object) static void e_table_memory_store_init (ETableMemoryStore *etms) { - etms->priv = E_TABLE_MEMORY_STORE_GET_PRIVATE (etms); + etms->priv = G_TYPE_INSTANCE_GET_PRIVATE (etms, E_TYPE_TABLE_MEMORY_STORE, ETableMemoryStorePrivate); } static void -- cgit