Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 30, 2010, 7:34:07 PM (14 years ago)
Author:
rgrieder
Message:

operator=() should not return constant references.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/libraries/core/ClassTreeMask.cc

    r6417 r7268  
    526526        @return A reference to the mask itself
    527527    */
    528     const ClassTreeMask& ClassTreeMask::operator=(const ClassTreeMask& other)
     528    ClassTreeMask& ClassTreeMask::operator=(const ClassTreeMask& other)
    529529    {
    530530        // Make a copy to avoid troubles with self-assignments (like A = A).
     
    843843        @param mask The mask
    844844    */
    845     const ClassTreeMaskObjectIterator& ClassTreeMaskObjectIterator::operator=(const ClassTreeMask& mask)
     845    ClassTreeMaskObjectIterator& ClassTreeMaskObjectIterator::operator=(const ClassTreeMask& mask)
    846846    {
    847847        // Clear everything, use a cleaned copy of the mask
Note: See TracChangeset for help on using the changeset viewer.