From e3cd95949c2887273c9ba0ba0b4fc6444bc866ed Mon Sep 17 00:00:00 2001 From: "ginn.chen%sun.com" Date: Tue, 25 Jul 2006 05:31:28 +0000 Subject: [PATCH] Bug 345421 nsRoleMap.h uses -1 for PRUint32 patch by gaomingcn at gmail.com r=aaronleventhal --- accessible/src/atk/nsRoleMap.h | 2 +- accessible/src/msaa/nsRoleMap.h | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/accessible/src/atk/nsRoleMap.h b/accessible/src/atk/nsRoleMap.h index 93a8e97ceb66..eaad8b4faa8b 100644 --- a/accessible/src/atk/nsRoleMap.h +++ b/accessible/src/atk/nsRoleMap.h @@ -41,7 +41,7 @@ #include #include "nsAccessibleWrap.h" -#define ROLE_ATK_LAST_ENTRY -1 +const PRUint32 ROLE_ATK_LAST_ENTRY = 0xffffffff; // Map array from cross platform roles to ATK roles PRUint32 atkRoleMap[] = { diff --git a/accessible/src/msaa/nsRoleMap.h b/accessible/src/msaa/nsRoleMap.h index 3d2718fef1d2..b3dd416652dc 100644 --- a/accessible/src/msaa/nsRoleMap.h +++ b/accessible/src/msaa/nsRoleMap.h @@ -40,19 +40,19 @@ #include "OLEACC.H" -#define USE_ROLE_STRING 0 -#define ROLE_MSAA_LAST_ENTRY -1 +const PRUint32 USE_ROLE_STRING = 0; +const PRUint32 ROLE_MSAA_LAST_ENTRY = 0xffffffff; #ifndef ROLE_SYSTEM_SPLITBUTTON -#define ROLE_SYSTEM_SPLITBUTTON ( 0x3e ) // Not defined in all oleacc.h versions +const PRUint32 ROLE_SYSTEM_SPLITBUTTON = 0x3e; // Not defined in all oleacc.h versions #endif #ifndef ROLE_SYSTEM_IPADDRESS -#define ROLE_SYSTEM_IPADDRESS ( 0x3f ) // Not defined in all oleacc.h versions +const PRUint32 ROLE_SYSTEM_IPADDRESS = 0x3f; // Not defined in all oleacc.h versions #endif #ifndef ROLE_SYSTEM_OUTLINEBUTTON -#define ROLE_SYSTEM_OUTLINEBUTTON ( 0x40 ) // Not defined in all oleacc.h versions +const PRUint32 ROLE_SYSTEM_OUTLINEBUTTON = 0x40; // Not defined in all oleacc.h versions #endif // Map array from cross platform roles to MSAA roles