Make kNameSpaceID_None a static const int so it won't cast to pointer types.

Bug 279806, r+sr=jst
This commit is contained in:
bzbarsky%mit.edu 2005-01-26 23:13:01 +00:00
parent 7cddf32f25
commit 90ac9d05d6

View File

@ -46,7 +46,9 @@ class nsString;
class nsINameSpace;
#define kNameSpaceID_Unknown -1
#define kNameSpaceID_None 0
// 0 is special at C++, so use a static const PRInt32 for
// kNameSpaceID_None to keep if from being cast to pointers
static const PRInt32 kNameSpaceID_None = 0;
#define kNameSpaceID_XMLNS 1 // not really a namespace, but it needs to play the game
#define kNameSpaceID_XML 2
#define kNameSpaceID_XHTML 3