mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0024533: Use 0 to check null handle instead of UndefinedHandleAccess
Handle classes now use 0 as invalid value for pointer instead of custom (and platform-dependent) value like 0xfefd0000. Compiler macros UndefinedHandleAddress and _OCC64 are eliminated.
This commit is contained in:
@@ -68,11 +68,7 @@ LDOM_XmlReader::LDOM_XmlReader (const int aFileDes,
|
||||
TCollection_AsciiString& anErrorString)
|
||||
: myEOF (Standard_False),
|
||||
myFileDes (aFileDes),
|
||||
#ifdef WNT
|
||||
myIStream (cin), // one quirk of MSVC6.0: can't initialise by 0
|
||||
#else
|
||||
myIStream (* (istream *) UndefinedHandleAddress),
|
||||
#endif
|
||||
myIStream (cin), // just a placeholder, myIStream will never be used anyway
|
||||
myError (anErrorString),
|
||||
myDocument (aDocument),
|
||||
myElement (NULL),
|
||||
|
Reference in New Issue
Block a user