dbertoni 2003/02/22 09:51:34
Modified: c/src/XPath XNull.cpp
Log:
Fix for lame Intel compiler.
Revision Changes Path
1.14 +9 -2 xml-xalan/c/src/XPath/XNull.cpp
Index: XNull.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XPath/XNull.cpp,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- XNull.cpp 21 Nov 2002 01:26:18 -0000 1.13
+++ XNull.cpp 22 Feb 2003 17:51:34 -0000 1.14
@@ -2,7 +2,7 @@
* The Apache Software License, Version 1.1
*
*
- * Copyright (c) 1999-2002 The Apache Software Foundation. All rights
+ * Copyright (c) 1999-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -94,7 +94,14 @@
#endif
XNull::clone(void* theAddress) const
{
- return theAddress == 0 ? new XNull(*this) : new (theAddress)
XNull(*this);
+ if (theAddress == 0)
+ {
+ return new XNull(*this);
+ }
+ else
+ {
+ return new (theAddress) XNull(*this);
+ }
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]