dbertoni    2003/02/22 09:52:54

  Modified:    c/src/XPath XNumber.cpp
  Log:
  Fix for lame Intel compiler.
  
  Revision  Changes    Path
  1.19      +9 -2      xml-xalan/c/src/XPath/XNumber.cpp
  
  Index: XNumber.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XPath/XNumber.cpp,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- XNumber.cpp       21 Nov 2002 01:26:18 -0000      1.18
  +++ XNumber.cpp       22 Feb 2003 17:52:54 -0000      1.19
  @@ -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
  @@ -98,7 +98,14 @@
   #endif
   XNumber::clone(void* theAddress) const
   {
  -     return theAddress == 0 ? new XNumber(*this) : new (theAddress) 
XNumber(*this);
  +     if (theAddress == 0)
  +     {
  +             return new XNumber(*this);
  +     }
  +     else
  +     {
  +             return new (theAddress) XNumber(*this);
  +     }
   }
   
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to