dbertoni    2002/11/13 09:37:40

  Modified:    c/src/XSLT NamespacesHandler.cpp
  Log:
  Added typename keyword.
  
  Revision  Changes    Path
  1.26      +16 -16    xml-xalan/c/src/XSLT/NamespacesHandler.cpp
  
  Index: NamespacesHandler.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XSLT/NamespacesHandler.cpp,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- NamespacesHandler.cpp     13 Nov 2002 02:29:44 -0000      1.25
  +++ NamespacesHandler.cpp     13 Nov 2002 17:37:40 -0000      1.26
  @@ -80,13 +80,13 @@
   
   
   template<class VectorType>
  -const VectorType::value_type*
  +const typename VectorType::value_type*
   findByPrefix(
                        const VectorType&               theVector,
                        const XalanDOMString&   thePrefix)
   {
  -     const VectorType::const_iterator        theEnd(theVector.end());
  -     VectorType::const_iterator      theCurrent(theVector.begin());
  +     const typename VectorType::const_iterator       theEnd(theVector.end());
  +     typename VectorType::const_iterator                     
theCurrent(theVector.begin());
   
        while(theCurrent != theEnd)
        {
  @@ -108,13 +108,13 @@
   #if defined(_MSC_VER)
   
   template<class VectorType>
  -VectorType::value_type*
  +typename VectorType::value_type*
   findByPrefixNonConst(
                        VectorType&                             theVector,
                        const XalanDOMString&   thePrefix)
   {
  -     const VectorType::iterator      theEnd(theVector.end());
  -     VectorType::iterator            theCurrent(theVector.begin());
  +     const typename VectorType::iterator             theEnd(theVector.end());
  +     typename VectorType::iterator                   
theCurrent(theVector.begin());
   
        while(theCurrent != theEnd)
        {
  @@ -134,13 +134,13 @@
   #else
   
   template<class VectorType>
  -VectorType::value_type*
  +typename VectorType::value_type*
   findByPrefix(
                        VectorType&                             theVector,
                        const XalanDOMString&   thePrefix)
   {
  -     const VectorType::const_iterator        theEnd(theVector.end());
  -     VectorType::const_iterator      theCurrent(theVector.begin());
  +     typename const VectorType::iterator             theEnd(theVector.end());
  +     typename VectorType::iterator                   
theCurrent(theVector.begin());
   
        while(theCurrent != theEnd)
        {
  @@ -158,7 +158,7 @@
   }
   
   template<class VectorType>
  -VectorType::value_type*
  +typename VectorType::value_type*
   findByPrefixNonConst(
                        VectorType&                             theVector,
                        const XalanDOMString&   thePrefix)
  @@ -170,13 +170,13 @@
   
   
   template<class VectorType>
  -const VectorType::value_type*
  +const typename VectorType::value_type*
   findByURI(
                        const VectorType&               theVector,
                        const XalanDOMString&   theNamespaceURI)
   {
  -     const VectorType::const_iterator        theEnd(theVector.end());
  -     VectorType::const_iterator                      
theCurrent(theVector.begin());
  +     const typename VectorType::const_iterator       theEnd(theVector.end());
  +     typename VectorType::const_iterator                     
theCurrent(theVector.begin());
   
        while(theCurrent != theEnd)
        {
  @@ -203,7 +203,7 @@
                        const XalanDOMString&                   thePrefix,
                        const XalanDOMString&                   theURI)
   {
  -     const VectorType::value_type* const             theEntry =
  +     const typename VectorType::value_type* const            theEntry =
                findByPrefix(theVector, thePrefix);
   
        if (theEntry != 0)
  @@ -231,7 +231,7 @@
                        const XalanDOMString&                   thePrefix,
                        const XalanDOMString&                   theURI)
   {
  -     VectorType::value_type* const   theEntry =
  +     typename VectorType::value_type* const  theEntry =
                findByPrefixNonConst(theVector, thePrefix);
   
        if (theEntry == 0)
  @@ -266,7 +266,7 @@
                        const VectorType&               theVector,
                        const XalanDOMString&   thePrefix)
   {
  -     const VectorType::value_type* const             theEntry =
  +     const typename VectorType::value_type* const    theEntry =
                findByPrefix(theVector, thePrefix);
   
        if (theEntry == 0)
  
  
  

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

Reply via email to