dbertoni 2003/02/22 09:55:15
Modified: c/src/XPath XSpan.cpp
Log:
Fix for lame Intel compiler.
Revision Changes Path
1.10 +9 -2 xml-xalan/c/src/XPath/XSpan.cpp
Index: XSpan.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XPath/XSpan.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- XSpan.cpp 21 Nov 2002 01:26:18 -0000 1.9
+++ XSpan.cpp 22 Feb 2003 17:55:15 -0000 1.10
@@ -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
@@ -93,7 +93,14 @@
#endif
XSpan::clone(void* theAddress) const
{
- return theAddress == 0 ? new XSpan(*this) : new (theAddress)
XSpan(*this);
+ if (theAddress == 0)
+ {
+ return new XSpan(*this);
+ }
+ else
+ {
+ return new (theAddress) XSpan(*this);
+ }
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]