mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 13:55:43 +00:00
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:
parent
7cddf32f25
commit
90ac9d05d6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user