dbertoni    2004/10/18 15:02:41

  Modified:    c/src/xalanc/Include XalanMap.hpp
  Log:
  Use const_cast instead of C-style cast.
  
  Revision  Changes    Path
  1.13      +1 -1      xml-xalan/c/src/xalanc/Include/XalanMap.hpp
  
  Index: XalanMap.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/xalanc/Include/XalanMap.hpp,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- XalanMap.hpp      18 Oct 2004 15:27:45 -0000      1.12
  +++ XalanMap.hpp      18 Oct 2004 22:02:41 -0000      1.13
  @@ -436,7 +436,7 @@
   
                // insert a new entry as the first position in the bucket
           Entry * newEntry = allocate(1);
  -        FirstConstructor::construct((key_type*)&newEntry->first, key, 
*m_memoryManager);
  +        FirstConstructor::construct(const_cast<key_type*>(&newEntry->first), 
key, *m_memoryManager);
           if (data != 0)
           {
               SecondConstructor::construct(&newEntry->second, *data, 
*m_memoryManager);
  
  
  

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

Reply via email to