[evolution] [win32] Don't brew your own macro if glib has one suitable available



commit e8d27a6f70969fefc9b9897cc607b81bfd8bd06f
Author: Fridrich Å trba <fridrich strba bluewin ch>
Date:   Mon Mar 29 17:10:38 2010 +0200

    [win32] Don't brew your own macro if glib has one suitable available

 modules/windows-sens/evolution-windows-sens.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/modules/windows-sens/evolution-windows-sens.c b/modules/windows-sens/evolution-windows-sens.c
index 1a24f8e..b88cb63 100644
--- a/modules/windows-sens/evolution-windows-sens.c
+++ b/modules/windows-sens/evolution-windows-sens.c
@@ -189,8 +189,6 @@ struct ISensNetwork {
 #include <shell/e-shell.h>
 #include <e-util/e-extension.h>
 
-#define NUM_ELEMENTS(x) (sizeof((x)) / sizeof((x)[0]))
-
 /* 4E14FB9F-2E22-11D1-9964-00C04FBBB345 */
 DEFINE_GUID(IID_IEventSystem, 0x4E14FB9F, 0x2E22, 0x11D1, 0x99, 0x64, 0x00, 0xC0, 0x4F, 0xBB, 0xB3, 0x45);
 
@@ -489,7 +487,7 @@ windows_sens_constructed (GObject *object)
 
 		unsigned i;
 
-		for (i=0; i<NUM_ELEMENTS(methods); i++) {
+		for (i=0; i<G_N_ELEMENTS(methods); i++) {
 
 			res=CoCreateInstance (&CLSID_CEventSubscription, 0, CLSCTX_SERVER, &IID_IEventSubscription, (LPVOID*)&pEventSubscription);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]