You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Neil Graham <ne...@ca.ibm.com> on 2004/03/30 16:40:29 UTC

Re: Bug in 2.5 NameIdPoolEnumerator





Hi Robert,

Guess NameIdPoolEnumerator's '=' method doesn't get used all that often,
since no one seems to have noticed this.  If you'd be kind enough to open a
Bugzilla report for this one so that it doesn't fall off the radar again,
that'd be great.

Cheers,
Neil
Neil Graham
XML Parser Development
IBM Toronto Lab
Phone:  905-413-3519, T/L 969-3519
E-mail:  neilg@ca.ibm.com




                                                                                                                                 
                      "Robert Buck"                                                                                              
                      <Robert.Buck@math        To:       <xe...@xml.apache.org>                                           
                      works.com>               cc:                                                                               
                                               Subject:  Bug in 2.5 NameIdPoolEnumerator                                         
                      03/30/2004 07:39                                                                                           
                      AM                                                                                                         
                      Please respond to                                                                                          
                      xerces-c-dev                                                                                               
                                                                                                                                 
                                                                                                                                 



I'm sure that you've run across this one already, but in case you haven't:

template <class TElem> class NameIdPoolEnumerator : public
XMLEnumerator<TElem>, public XMemory
//...
    //
-----------------------------------------------------------------------
    unsigned int            fCurIndex;
    NameIdPool<TElem>*      fToEnum;
    MemoryManager* const    fMemoryManager;  <<<<<<<<<<<<<<
};

//...

template <class TElem> NameIdPoolEnumerator<TElem>&
NameIdPoolEnumerator<TElem>::
operator=(const NameIdPoolEnumerator<TElem>& toAssign)
{
    if (this == &toAssign)
        return *this;
    fMemoryManager = toAssign.fMemoryManager; // <<< HUH? The ptr is const
people
    fCurIndex      = toAssign.fCurIndex;
    fToEnum        = toAssign.fToEnum;
    return *this;
}





---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org