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/SubclassIdentifier.h

    r6417 r7268  
    9191                @return The SubclassIdentifier itself
    9292            */
    93             const SubclassIdentifier<T>& operator=(Identifier* identifier)
     93            SubclassIdentifier<T>& operator=(Identifier* identifier)
    9494            {
    9595                if (!identifier || !identifier->isA(ClassIdentifier<T>::getIdentifier()))
     
    118118            */
    119119            template <class O>
    120             const SubclassIdentifier<T>& operator=(const SubclassIdentifier<O>& identifier)
     120            SubclassIdentifier<T>& operator=(const SubclassIdentifier<O>& identifier)
    121121            {
    122122                return this->operator=(identifier.getIdentifier());
Note: See TracChangeset for help on using the changeset viewer.