dbertoni    00/04/27 08:09:37

  Modified:    c/src/PlatformSupport DOMStringHelper.hpp
  Log:
  More efficient implementation of clear().
  
  Revision  Changes    Path
  1.16      +5 -4      xml-xalan/c/src/PlatformSupport/DOMStringHelper.hpp
  
  Index: DOMStringHelper.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/PlatformSupport/DOMStringHelper.hpp,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- DOMStringHelper.hpp       2000/04/25 22:35:43     1.15
  +++ DOMStringHelper.hpp       2000/04/27 15:09:37     1.16
  @@ -1134,10 +1134,11 @@
   inline void
   clear(XalanDOMString&        theString)
   {
  -     if (length(theString) > 0)
  -     {
  -             theString = DOMString();
  -     }
  +#if defined(XALAN_OLD_STYLE_CASTS)
  +     theString = (DOM_NullPtr)0;
  +#else
  +     theString = static_cast<DOM_NullPtr*>(0);
  +#endif
   }
   
   
  
  
  

Reply via email to