changeset 80771:aee651d7cdc7

(Fmac_resume_apple_event): Distribute cast to pointer over conditional branches.
author YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
date Fri, 29 Aug 2008 08:18:30 +0000
parents a044f4615c60
children 8d9c25087de7
files src/macselect.c
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/macselect.c	Fri Aug 29 08:18:22 2008 +0000
+++ b/src/macselect.c	Fri Aug 29 08:18:30 2008 +0000
@@ -1041,10 +1041,9 @@
 	}
       AESetTheCurrentEvent (&ae->apple_event);
       AEResumeTheCurrentEvent (&ae->apple_event, &ae->reply,
-			       ((AEEventHandlerUPP)
-				(EQ (error_code, Qt) ?
-				 kAEUseStandardDispatch : kAENoDispatch)),
-			       0);
+			       (EQ (error_code, Qt)
+				? (AEEventHandlerUPP) kAEUseStandardDispatch
+				: (AEEventHandlerUPP) kAENoDispatch), 0);
       AEDisposeDesc (&ae->reply);
       AEDisposeDesc (&ae->apple_event);
       xfree (ae);